Changeset 215756 in webkit


Ignore:
Timestamp:
Apr 25, 2017 1:58:38 PM (7 years ago)
Author:
mmaxfield@apple.com
Message:

Supplementary Multilingual Plane Complex Scripts Rendered Incorrectly
https://bugs.webkit.org/show_bug.cgi?id=171272
<rdar://problem/30966764>

Reviewed by Zalan Bujtas.

Source/WebCore:

These scripts need to take the complex text codepath.

Test: fast/text/kaithi.html

  • platform/graphics/FontCascade.cpp:

(WebCore::FontCascade::characterRangeCodePath):

LayoutTests:

  • fast/text/kaithi-expected.html: Added.
  • fast/text/kaithi.html: Added.
  • platform/ios/TestExpectations:
  • platform/mac/TestExpectations:
Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r215753 r215756  
     12017-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Supplementary Multilingual Plane Complex Scripts Rendered Incorrectly
     4        https://bugs.webkit.org/show_bug.cgi?id=171272
     5        <rdar://problem/30966764>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * fast/text/kaithi-expected.html: Added.
     10        * fast/text/kaithi.html: Added.
     11        * platform/ios/TestExpectations:
     12        * platform/mac/TestExpectations:
     13
    1142017-04-25  Daniel Bates  <dabates@apple.com>
    215
  • trunk/LayoutTests/platform/ios/TestExpectations

    r215753 r215756  
    29432943http/tests/security/contentSecurityPolicy/audio-redirect-allowed2.html [ Skip ]
    29442944http/tests/security/contentSecurityPolicy/video-redirect-allowed2.html [ Skip ]
     2945
     2946webkit.org/b/171272 fast/text/kaithi.html [ ImageOnlyFailure ]
  • trunk/LayoutTests/platform/mac/TestExpectations

    r215753 r215756  
    15881588
    15891589webkit.org/b/165553 media/media-controls-timeline-updates-when-hovered.html [ Pass Failure ]
     1590
     1591webkit.org/b/171272 [ Yosemite ElCapitan Sierra ] fast/text/kaithi.html [ ImageOnlyFailure ]
  • trunk/Source/WebCore/ChangeLog

    r215754 r215756  
     12017-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Supplementary Multilingual Plane Complex Scripts Rendered Incorrectly
     4        https://bugs.webkit.org/show_bug.cgi?id=171272
     5        <rdar://problem/30966764>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        These scripts need to take the complex text codepath.
     10
     11        Test: fast/text/kaithi.html
     12
     13        * platform/graphics/FontCascade.cpp:
     14        (WebCore::FontCascade::characterRangeCodePath):
     15
    1162017-04-25  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/FontCascade.cpp

    r213614 r215756  
    788788            UChar32 supplementaryCharacter = U16_GET_SUPPLEMENTARY(c, next);
    789789
     790            if (supplementaryCharacter < 0x10A00)
     791                continue;
     792            if (supplementaryCharacter < 0x10A60) // Kharoshthi
     793                return Complex;
     794            if (supplementaryCharacter < 0x11000)
     795                continue;
     796            if (supplementaryCharacter < 0x11080) // Brahmi
     797                return Complex;
     798            if (supplementaryCharacter < 0x110D0) // Kaithi
     799                return Complex;
     800            if (supplementaryCharacter < 0x11100)
     801                continue;
     802            if (supplementaryCharacter < 0x11150) // Chakma
     803                return Complex;
     804            if (supplementaryCharacter < 0x11180) // Mahajani
     805                return Complex;
     806            if (supplementaryCharacter < 0x111E0) // Sharada
     807                return Complex;
     808            if (supplementaryCharacter < 0x11200)
     809                continue;
     810            if (supplementaryCharacter < 0x11250) // Khojki
     811                return Complex;
     812            if (supplementaryCharacter < 0x112B0)
     813                continue;
     814            if (supplementaryCharacter < 0x11300) // Khudawadi
     815                return Complex;
     816            if (supplementaryCharacter < 0x11380) // Grantha
     817                return Complex;
     818            if (supplementaryCharacter < 0x11400)
     819                continue;
     820            if (supplementaryCharacter < 0x11480) // Newa
     821                return Complex;
     822            if (supplementaryCharacter < 0x114E0) // Tirhuta
     823                return Complex;
     824            if (supplementaryCharacter < 0x11580)
     825                continue;
     826            if (supplementaryCharacter < 0x11600) // Siddham
     827                return Complex;
     828            if (supplementaryCharacter < 0x11660) // Modi
     829                return Complex;
     830            if (supplementaryCharacter < 0x11680)
     831                continue;
     832            if (supplementaryCharacter < 0x116D0) // Takri
     833                return Complex;
     834            if (supplementaryCharacter < 0x11C00)
     835                continue;
     836            if (supplementaryCharacter < 0x11C70) // Bhaiksuki
     837                return Complex;
     838            if (supplementaryCharacter < 0x11CC0) // Marchen
     839                return Complex;
     840            if (supplementaryCharacter < 0x1E900)
     841                continue;
     842            if (supplementaryCharacter < 0x1E960) // Adlam
     843                return Complex;
    790844            if (supplementaryCharacter < 0x1F1E6) // U+1F1E6 through U+1F1FF Regional Indicator Symbols
    791845                continue;
Note: See TracChangeset for help on using the changeset viewer.