Changeset 194461 in webkit


Ignore:
Timestamp:
Dec 31, 2015 11:27:58 AM (8 years ago)
Author:
Alan Bujtas
Message:

Simple line layout: Nested block with pseudo first-line parent should bail out of simple line layout.
https://bugs.webkit.org/show_bug.cgi?id=152599

Reviewed by Simon Fraser.

We should bail out of simple line layout if any of the ancestors have pseudo first-line style.
(see RenderBlock::firstLineBlock())

Source/WebCore:

Test: fast/block/line-layout/first-line-should-bail-out-of-simple-line-layout.html

  • rendering/SimpleLineLayout.cpp:

(WebCore::SimpleLineLayout::canUseForWithReason):

LayoutTests:

  • fast/block/line-layout/first-line-should-bail-out-of-simple-line-layout-expected.html: Added.
  • fast/block/line-layout/first-line-should-bail-out-of-simple-line-layout.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r194459 r194461  
     12015-12-31  Zalan Bujtas  <zalan@apple.com>
     2
     3        Simple line layout: Nested block with pseudo first-line parent should bail out of simple line layout.
     4        https://bugs.webkit.org/show_bug.cgi?id=152599
     5
     6        Reviewed by Simon Fraser.
     7
     8        We should bail out of simple line layout if any of the ancestors have pseudo first-line style.
     9        (see RenderBlock::firstLineBlock())
     10
     11        * fast/block/line-layout/first-line-should-bail-out-of-simple-line-layout-expected.html: Added.
     12        * fast/block/line-layout/first-line-should-bail-out-of-simple-line-layout.html: Added.
     13
    1142015-12-31  Martin Robinson  <mrobinson@igalia.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r194457 r194461  
     12015-12-31  Zalan Bujtas  <zalan@apple.com>
     2
     3        Simple line layout: Nested block with pseudo first-line parent should bail out of simple line layout.
     4        https://bugs.webkit.org/show_bug.cgi?id=152599
     5
     6        Reviewed by Simon Fraser.
     7
     8        We should bail out of simple line layout if any of the ancestors have pseudo first-line style.
     9        (see RenderBlock::firstLineBlock())
     10
     11        Test: fast/block/line-layout/first-line-should-bail-out-of-simple-line-layout.html
     12
     13        * rendering/SimpleLineLayout.cpp:
     14        (WebCore::SimpleLineLayout::canUseForWithReason):
     15
    1162015-12-30  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/rendering/SimpleLineLayout.cpp

    r193947 r194461  
    288288    if (flow.document().paginated())
    289289        SET_REASON_AND_RETURN_IF_NEEDED(FlowIsPaginated, reasons, includeReasons);
    290     if (flow.isAnonymous() && flow.firstLineBlock())
     290    if (flow.firstLineBlock())
    291291        SET_REASON_AND_RETURN_IF_NEEDED(FlowHasPseudoFirstLine, reasons, includeReasons);
    292292    if (flow.isAnonymousBlock() && flow.parent()->style().textOverflow())
Note: See TracChangeset for help on using the changeset viewer.