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

Changeset 243605 in webkit


Ignore:
Timestamp:
Mar 28, 2019, 9:02:24 AM (7 years ago)
Author:
Alan Bujtas
Message:

[SimpleLineLayout] Disable SLL when text-underline-position is not auto.
https://bugs.webkit.org/show_bug.cgi?id=196338
<rdar://problem/47975167>

Reviewed by Daniel Bates.

Source/WebCore:

Disable simple line layout unconditionally on non-auto text-underline-position content. We don't support it yet.

Test: fast/text/simple-line-layout-with-text-underline-position.html

  • rendering/SimpleLineLayout.cpp:

(WebCore::SimpleLineLayout::canUseForStyle):

LayoutTests:

  • fast/text/simple-line-layout-with-text-underline-position-expected.html: Added.
  • fast/text/simple-line-layout-with-text-underline-position.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243602 r243605  
     12019-03-28  Zalan Bujtas  <zalan@apple.com>
     2
     3        [SimpleLineLayout] Disable SLL when text-underline-position is not auto.
     4        https://bugs.webkit.org/show_bug.cgi?id=196338
     5        <rdar://problem/47975167>
     6
     7        Reviewed by Daniel Bates.
     8
     9        * fast/text/simple-line-layout-with-text-underline-position-expected.html: Added.
     10        * fast/text/simple-line-layout-with-text-underline-position.html: Added.
     11
    1122019-03-28  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r243603 r243605  
     12019-03-28  Zalan Bujtas  <zalan@apple.com>
     2
     3        [SimpleLineLayout] Disable SLL when text-underline-position is not auto.
     4        https://bugs.webkit.org/show_bug.cgi?id=196338
     5        <rdar://problem/47975167>
     6
     7        Reviewed by Daniel Bates.
     8
     9        Disable simple line layout unconditionally on non-auto text-underline-position content. We don't support it yet.
     10
     11        Test: fast/text/simple-line-layout-with-text-underline-position.html
     12
     13        * rendering/SimpleLineLayout.cpp:
     14        (WebCore::SimpleLineLayout::canUseForStyle):
     15
    1162019-03-28  Víctor Manuel Jáquez Leal  <vjaquez@igalia.com>
    217
  • trunk/Source/WebCore/rendering/SimpleLineLayout.cpp

    r239427 r243605  
    202202    if (style.textOverflow() == TextOverflow::Ellipsis)
    203203        SET_REASON_AND_RETURN_IF_NEEDED(FlowHasTextOverflow, reasons, includeReasons);
    204     if ((style.textDecorationsInEffect() & TextDecoration::Underline) && (style.textUnderlinePosition() != TextUnderlinePosition::Auto || !style.textUnderlineOffset().isAuto() || !style.textDecorationThickness().isAuto()))
     204    if (style.textUnderlinePosition() != TextUnderlinePosition::Auto || !style.textUnderlineOffset().isAuto() || !style.textDecorationThickness().isAuto())
    205205        SET_REASON_AND_RETURN_IF_NEEDED(FlowHasUnsupportedUnderlineDecoration, reasons, includeReasons);
    206206    // Non-visible overflow should be pretty easy to support.
Note: See TracChangeset for help on using the changeset viewer.