Bug 1241118 - Add gc = GetGeneralCategory(ch) when sc == MOZ_SCRIPT_COMMON. r=jfkthame
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 20 Jan 2016 17:17:14 +0200
changeset 280868 c04144a61f3e7b533a02d87e566d70e48137ec1c
parent 280867 6957ada1d4374578675646b4df249e402f2e6b5d
child 280869 0014798942e0d6a257c3524c6dc1052d08877122
push id29922
push usercbook@mozilla.com
push dateThu, 21 Jan 2016 10:51:00 +0000
treeherdermozilla-central@977d78a8dd78 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1241118
milestone46.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 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))
             {