Bug 1294448 followup - Cosmetic fixes to code style, no functional change. r=jrmuizel
authorJonathan Kew <jkew@mozilla.com>
Thu, 11 Aug 2016 20:08:42 +0100
changeset 309173 0307f3b495ed7cc0105b338bcf1eb8b6175009ef
parent 309172 2e5c6bab845670af3b30c310145f3e9c8640d050
child 309174 0ff858bf7e793a344eb858d55263c63ac649cb9f
push id30557
push userkwierso@gmail.com
push dateFri, 12 Aug 2016 20:45:15 +0000
treeherdermozilla-central@ef3a50774180 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1294448
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1294448 followup - Cosmetic fixes to code style, no functional change. r=jrmuizel
gfx/thebes/gfxFontUtils.cpp
--- a/gfx/thebes/gfxFontUtils.cpp
+++ b/gfx/thebes/gfxFontUtils.cpp
@@ -1492,29 +1492,32 @@ gfxFontUtils::ReadNames(const char *aNam
         = reinterpret_cast<const NameRecord*>(aNameData + sizeof(NameHeader));
     uint64_t nameStringsBase = uint64_t(nameHeader->stringOffset);
 
     uint32_t i;
     for (i = 0; i < nameCount; i++, nameRecord++) {
         uint32_t platformID;
 
         // skip over unwanted nameID's
-        if (uint32_t(nameRecord->nameID) != aNameID)
+        if (uint32_t(nameRecord->nameID) != aNameID) {
             continue;
+        }
 
         // skip over unwanted platform data
         platformID = nameRecord->platformID;
-        if (aPlatformID != PLATFORM_ALL
-            && platformID != uint32_t(aPlatformID))
+        if (aPlatformID != PLATFORM_ALL &&
+            platformID != uint32_t(aPlatformID)) {
             continue;
+        }
 
         // skip over unwanted languages
-        if (aLangID != LANG_ALL
-              && uint32_t(nameRecord->languageID) != uint32_t(aLangID))
+        if (aLangID != LANG_ALL &&
+            uint32_t(nameRecord->languageID) != uint32_t(aLangID)) {
             continue;
+        }
 
         // add name to names array
 
         // -- calculate string location
         uint32_t namelen = nameRecord->length;
         uint32_t nameoff = nameRecord->offset;  // offset from base of string storage
 
         if (nameStringsBase + uint64_t(nameoff) + uint64_t(namelen)