Skip to content

Commit

Permalink
Backed out changeset 3f75ba849f09 (bug 1780540) for causing build bus…
Browse files Browse the repository at this point in the history
…tages on gfxFcPlatformFontList.cpp CLOSED TREE
  • Loading branch information
Norisz Fay committed Jul 21, 2022
1 parent 0dfc58c commit e99928a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gfx/thebes/gfxDWriteFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ nsresult gfxDWriteFontEntry::ReadCMAP(FontInfoData* aFontInfoData) {
// Temporarily retain charmap, until the shared version is
// ready for use.
if (mCharacterMap.compareExchange(nullptr, charmap.get())) {
charmap->AddRef();
Unused << charmap.forget();
}
}

Expand Down
1 change: 0 additions & 1 deletion gfx/thebes/gfxFT2FontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ nsresult FT2FontEntry::ReadCMAP(FontInfoData* aFontInfoData) {
}
if (setCharMap) {
if (mCharacterMap.compareExchange(nullptr, charmap.get())) {
// We forget rather than addref because we don't use the charmap below.
Unused << charmap.forget();
}
}
Expand Down
2 changes: 1 addition & 1 deletion gfx/thebes/gfxFcPlatformFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ nsresult gfxFontconfigFontEntry::ReadCMAP(FontInfoData* aFontInfoData) {
}
if (setCharMap) {
if (mCharacterMap.compareExchange(nullptr, charmap.get())) {
charmap->AddRef();
Unused << charmap.forget();
}
}

Expand Down
2 changes: 1 addition & 1 deletion gfx/thebes/gfxGDIFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ nsresult GDIFontEntry::ReadCMAP(FontInfoData* aFontInfoData) {
charmap->mBuildOnTheFly = true;
}
if (mCharacterMap.compareExchange(nullptr, charmap.get())) {
charmap->AddRef();
Unused << charmap.forget();
}

LOG_FONTLIST(("(fontlist-cmap) name: %s, size: %zd hash: %8.8x%s\n",
Expand Down
2 changes: 1 addition & 1 deletion gfx/thebes/gfxMacPlatformFontList.mm
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ static void GetStringForNSString(const NSString* aSrc, nsAString& aDest) {
// Temporarily retain charmap, until the shared version is
// ready for use.
if (mCharacterMap.compareExchange(nullptr, charmap.get())) {
charmap->AddRef();
Unused << charmap.forget();
}
}

Expand Down

0 comments on commit e99928a

Please sign in to comment.