Changeset 230412 in webkit


Ignore:
Timestamp:
Apr 9, 2018 5:59:18 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r229867 - [Simple line layout] Text with letter spacing is not positioned properly.
https://bugs.webkit.org/show_bug.cgi?id=183079
<rdar://problem/38762569>

Reviewed by Antti Koivisto.

Source/WebCore:

We need to recompute RenderText::m_canUseSimplifiedTextMeasuring when the font cascade changes
since we might not be able to use the fast path anymore.

Test: fast/text/simple-line-layout-dynamic-letter-word-spacing.html

  • rendering/RenderText.cpp:

(WebCore::RenderText::styleDidChange):

LayoutTests:

  • fast/text/simple-line-layout-dynamic-letter-word-spacing-expected.html: Added.
  • fast/text/simple-line-layout-dynamic-letter-word-spacing.html: Added.
Location:
releases/WebKitGTK/webkit-2.20
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.20/LayoutTests/ChangeLog

    r230411 r230412  
     12018-03-22  Zalan Bujtas  <zalan@apple.com>
     2
     3        [Simple line layout] Text with letter spacing is not positioned properly.
     4        https://bugs.webkit.org/show_bug.cgi?id=183079
     5        <rdar://problem/38762569>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        * fast/text/simple-line-layout-dynamic-letter-word-spacing-expected.html: Added.
     10        * fast/text/simple-line-layout-dynamic-letter-word-spacing.html: Added.
     11
    1122018-03-22  Adrian Perez de Castro  <aperez@igalia.com>
    213
  • releases/WebKitGTK/webkit-2.20/Source/WebCore/ChangeLog

    r230409 r230412  
     12018-03-22  Zalan Bujtas  <zalan@apple.com>
     2
     3        [Simple line layout] Text with letter spacing is not positioned properly.
     4        https://bugs.webkit.org/show_bug.cgi?id=183079
     5        <rdar://problem/38762569>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        We need to recompute RenderText::m_canUseSimplifiedTextMeasuring when the font cascade changes
     10        since we might not be able to use the fast path anymore.
     11
     12        Test: fast/text/simple-line-layout-dynamic-letter-word-spacing.html
     13
     14        * rendering/RenderText.cpp:
     15        (WebCore::RenderText::styleDidChange):
     16
    1172018-03-22  Adrian Perez de Castro  <aperez@igalia.com>
    218
  • releases/WebKitGTK/webkit-2.20/Source/WebCore/rendering/RenderText.cpp

    r229025 r230412  
    264264        m_useBackslashAsYenSymbol = computeUseBackslashAsYenSymbol();
    265265        needsResetText = m_useBackslashAsYenSymbol;
    266         // It should really be computed in the c'tor, but during construction we don't have parent yet -and RenderText style == parent()->style()
    267         m_canUseSimplifiedTextMeasuring = computeCanUseSimplifiedTextMeasuring();
    268266    } else if (oldStyle->fontCascade().useBackslashAsYenSymbol() != newStyle.fontCascade().useBackslashAsYenSymbol()) {
    269267        m_useBackslashAsYenSymbol = computeUseBackslashAsYenSymbol();
    270268        needsResetText = true;
    271269    }
     270
     271    if (!oldStyle || oldStyle->fontCascade() != newStyle.fontCascade())
     272        m_canUseSimplifiedTextMeasuring = computeCanUseSimplifiedTextMeasuring();
    272273
    273274    ETextTransform oldTransform = oldStyle ? oldStyle->textTransform() : TTNONE;
Note: See TracChangeset for help on using the changeset viewer.