⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271425 in webkit


Ignore:
Timestamp:
Jan 12, 2021, 4:55:07 PM (6 years ago)
Author:
mmaxfield@apple.com
Message:

Multi-codepoint CJK grapheme clusters are not oriented correctly in vertical writing mode
https://bugs.webkit.org/show_bug.cgi?id=220536
<rdar://problem/70633887>

Reviewed by Zalan Bujtas.

Source/WebCore:

We have two codeblocks in this section that are meant to be used
for non-CJK text, but the compound "if" statement was causing us to hit
one of them even for CJK text.

Test: fast/text/cjk-multi-codepoint-cluster-vertical.html

  • platform/graphics/coretext/FontCascadeCoreText.cpp:

(WebCore::FontCascade::fontForCombiningCharacterSequence const):

LayoutTests:

  • fast/text/cjk-multi-codepoint-cluster-vertical-expected.html: Added.
  • fast/text/cjk-multi-codepoint-cluster-vertical.html: Added.
  • platform/win/TestExpectations:
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r271419 r271425  
     12021-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Multi-codepoint CJK grapheme clusters are not oriented correctly in vertical writing mode
     4        https://bugs.webkit.org/show_bug.cgi?id=220536
     5        <rdar://problem/70633887>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * fast/text/cjk-multi-codepoint-cluster-vertical-expected.html: Added.
     10        * fast/text/cjk-multi-codepoint-cluster-vertical.html: Added.
     11        * platform/win/TestExpectations:
     12
    1132021-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
    214
  • trunk/LayoutTests/platform/win/TestExpectations

    r271416 r271425  
    46144614js/dom/webassembly-memory-shared-fail.html [ Skip ]
    46154615storage/indexeddb/shared-memory-structured-clone.html [ Skip ]
     4616
     4617webkit.org/b/220536 fast/text/cjk-multi-codepoint-cluster-vertical.html [ ImageOnlyFailure ]
  • trunk/Source/WebCore/ChangeLog

    r271418 r271425  
     12021-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Multi-codepoint CJK grapheme clusters are not oriented correctly in vertical writing mode
     4        https://bugs.webkit.org/show_bug.cgi?id=220536
     5        <rdar://problem/70633887>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        We have two codeblocks in this section that are meant to be used
     10        for non-CJK text, but the compound "if" statement was causing us to hit
     11        one of them even for CJK text.
     12
     13        Test: fast/text/cjk-multi-codepoint-cluster-vertical.html
     14
     15        * platform/graphics/coretext/FontCascadeCoreText.cpp:
     16        (WebCore::FontCascade::fontForCombiningCharacterSequence const):
     17
    1182021-01-12  Eric Carlson  <eric.carlson@apple.com>
    219
  • trunk/Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp

    r269211 r271425  
    323323#endif
    324324        if (font->platformData().orientation() == FontOrientation::Vertical) {
    325             if (isCJKIdeographOrSymbol(baseCharacter) && !font->hasVerticalGlyphs())
    326                 font = &font->brokenIdeographFont();
    327             else if (m_fontDescription.nonCJKGlyphOrientation() == NonCJKGlyphOrientation::Mixed) {
     325            if (isCJKIdeographOrSymbol(baseCharacter)) {
     326                if (!font->hasVerticalGlyphs())
     327                    font = &font->brokenIdeographFont();
     328            } else if (m_fontDescription.nonCJKGlyphOrientation() == NonCJKGlyphOrientation::Mixed) {
    328329                const Font& verticalRightFont = font->verticalRightOrientationFont();
    329330                Glyph verticalRightGlyph = verticalRightFont.glyphForCharacter(baseCharacter);
Note: See TracChangeset for help on using the changeset viewer.