Changeset 155951 in webkit


Ignore:
Timestamp:
Sep 17, 2013 6:24:28 AM (11 years ago)
Author:
michael.bruning@digia.com
Message:

Correct range used for Emoji checks.
https://bugs.webkit.org/show_bug.cgi?id=121486

Reviewed by Allan Sandfeld Jensen.

Found and reported by David Binderman via Qt bug tracker.

The check if a character was in the Emoji range always evaluated to
false due to the upper range limit being lower than the lower limit.

Changed the upper limit to the highest assigned character from the
"Transport and Map Symbols" (0x1F6C5) as that seems to have been the
intended upper range limit of this check.

  • platform/graphics/Font.cpp:

(WebCore::Font::isCJKIdeographOrSymbol):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r155949 r155951  
     12013-09-17  Michael Brüning  <michael.bruning@digia.com>
     2
     3        Correct range used for Emoji checks.
     4        https://bugs.webkit.org/show_bug.cgi?id=121486
     5
     6        Reviewed by Allan Sandfeld Jensen.
     7
     8        Found and reported by David Binderman via Qt bug tracker.
     9
     10        The check if a character was in the Emoji range always evaluated to
     11        false due to the upper range limit being lower than the lower limit.
     12
     13        Changed the upper limit to the highest assigned character from the
     14        "Transport and Map Symbols" (0x1F6C5) as that seems to have been the
     15        intended upper range limit of this check.
     16
     17        * platform/graphics/Font.cpp:
     18        (WebCore::Font::isCJKIdeographOrSymbol):
     19
    1202013-09-17  Antti Koivisto  <antti@apple.com>
    221
  • trunk/Source/WebCore/platform/graphics/Font.cpp

    r154384 r155951  
    796796        return true;
    797797
    798     if (c >= 0x1F200 && c <= 0x1F6F)
     798    if (c >= 0x1F200 && c <= 0x1F6C5)
    799799        return true;
    800800
Note: See TracChangeset for help on using the changeset viewer.