Bug 1241118 - add gc = GetGeneralCategory(ch) when sc == MOZ_SCRIPT_COMMON. r?jfkthame draft
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 20 Jan 2016 17:17:14 +0200
changeset 323513 71550e901f2dbdf0b02b126b72cdb102355f120a
parent 323387 2e50b83954e62d52d2ef294e850c4380d457d96a
child 513231 30da874c9e26f72620459cc546eb91158e5f5fd4
push id9739
push userbmo:bogdan.postelnicu@softvision.ro
push dateWed, 20 Jan 2016 15:18:16 +0000
reviewersjfkthame
bugs1241118
milestone46.0a1
Bug 1241118 - add gc = GetGeneralCategory(ch) when sc == MOZ_SCRIPT_COMMON. r?jfkthame
gfx/thebes/gfxScriptItemizer.cpp
--- a/gfx/thebes/gfxScriptItemizer.cpp
+++ b/gfx/thebes/gfxScriptItemizer.cpp
@@ -170,17 +170,17 @@ gfxScriptItemizer::Next(uint32_t& aRunSt
              * if it's an open character, push it onto the stack.
              * if it's a close character, find the matching open on the
              * stack, and use that script code. Any non-matching open
              * characters above it on the stack will be popped.
              *
              * We only do this if the script is COMMON; for chars with
              * specific script assignments, we just use them as-is.
              */
-            GetGeneralCategory(ch);
+            gc = GetGeneralCategory(ch);
             if (gc == HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION) {
                 uint32_t endPairChar = mozilla::unicode::GetMirroredChar(ch);
                 if (endPairChar != ch) {
                     push(endPairChar, scriptCode);
                 }
             } else if (gc == HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION &&
                 HasMirroredChar(ch))
             {