platform/graphics/skia/GlyphPageTreeNodeSkia.cpp mis-use 'continue' for 'break'
authorxji@chromium.org <xji@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 23:32:16 +0000 (23:32 +0000)
committerxji@chromium.org <xji@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 23:32:16 +0000 (23:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83521

Reviewed by David Levin.

No functionality change, so no new tests.

* platform/graphics/skia/GlyphPageTreeNodeSkia.cpp:
(WebCore::GlyphPage::fill):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114316 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/skia/GlyphPageTreeNodeSkia.cpp

index 1b727a6..64817ec 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-16  Xiaomei Ji  <xji@chromium.org>
+
+        platform/graphics/skia/GlyphPageTreeNodeSkia.cpp mis-use 'continue' for 'break'
+        https://bugs.webkit.org/show_bug.cgi?id=83521
+
+        Reviewed by David Levin.
+
+        No functionality change, so no new tests.
+
+        * platform/graphics/skia/GlyphPageTreeNodeSkia.cpp:
+        (WebCore::GlyphPage::fill):
+
 2012-04-16  Levi Weintraub  <leviw@chromium.org>
 
         Make borderBoxRect sub-pixel precise and add a pixel snapped version
index 95a2144..66882cf 100644 (file)
@@ -96,15 +96,12 @@ bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned b
     }
 
     if (fontData->hasVerticalGlyphs()) {
-        bool lookVariants = false;
         for (unsigned i = 0; i < bufferLength; ++i) {
             if (!Font::isCJKIdeograph(buffer[i])) {
-                lookVariants = true;
-                continue;
+                substituteWithVerticalGlyphs(fontData, glyphs, length);
+                break;
             }
         }
-        if (lookVariants)
-            substituteWithVerticalGlyphs(fontData, glyphs, length);
     }
 
     unsigned allGlyphs = 0; // track if any of the glyphIDs are non-zero