Changeset 257928 in webkit


Ignore:
Timestamp:
Mar 5, 2020 10:38:30 AM (4 years ago)
Author:
Alan Bujtas
Message:

[LFC][Integration] Reset position style on line breaks.
https://bugs.webkit.org/show_bug.cgi?id=208646
<rdar://problem/60086589>

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/inline/out-of-flow-positioned-line-break.html

We need to treat line breaks as statically positioned inline content.
In the long run we should do something along these lines:
https://github.com/w3c/csswg-drafts/issues/610

  • layout/integration/LayoutIntegrationBoxTree.cpp:

(WebCore::LayoutIntegration::BoxTree::buildTree):

LayoutTests:

  • fast/inline/out-of-flow-positioned-line-break-expected.txt: Added.
  • fast/inline/out-of-flow-positioned-line-break.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r257917 r257928  
     12020-03-05  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Integration] Reset position style on line breaks.
     4        https://bugs.webkit.org/show_bug.cgi?id=208646
     5        <rdar://problem/60086589>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        * fast/inline/out-of-flow-positioned-line-break-expected.txt: Added.
     10        * fast/inline/out-of-flow-positioned-line-break.html: Added.
     11
    1122020-03-05  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r257926 r257928  
     12020-03-05  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Integration] Reset position style on line breaks.
     4        https://bugs.webkit.org/show_bug.cgi?id=208646
     5        <rdar://problem/60086589>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Test: fast/inline/out-of-flow-positioned-line-break.html
     10
     11        We need to treat line breaks as statically positioned inline content.
     12        In the long run we should do something along these lines:
     13        https://github.com/w3c/csswg-drafts/issues/610
     14
     15        * layout/integration/LayoutIntegrationBoxTree.cpp:
     16        (WebCore::LayoutIntegration::BoxTree::buildTree):
     17
    1182020-03-05  Eric Carlson  <eric.carlson@apple.com>
    219
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp

    r257507 r257928  
    6767            clonedStyle.setDisplay(DisplayType::Inline);
    6868            clonedStyle.setFloating(Float::No);
     69            clonedStyle.setPosition(PositionType::Static);
    6970            childBox = makeUnique<Layout::LineBreakBox>(downcast<RenderLineBreak>(childRenderer).isWBR(), WTFMove(clonedStyle));
    7071        }
Note: See TracChangeset for help on using the changeset viewer.