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

Changeset 238493 in webkit


Ignore:
Timestamp:
Nov 26, 2018, 7:23:44 AM (8 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Use float box's margin box to adjust the line constraints.
https://bugs.webkit.org/show_bug.cgi?id=191961

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/inline/inline-content-with-float-and-margin.html

(WebCore::Layout::outputMismatchingComplexLineInformationIfNeeded):
(WebCore::Layout::LayoutState::verifyAndOutputMismatchingLayoutTree const):

  • layout/inlineformatting/InlineFormattingContext.cpp:

(WebCore::Layout::InlineFormattingContext::layoutInlineContent const):

Tools:

  • LayoutReloaded/misc/LFC-passing-tests.txt:

LayoutTests:

  • fast/inline/inline-content-with-float-and-margin-expected.txt: Added.
  • fast/inline/inline-content-with-float-and-margin.html: Added.
Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r238488 r238493  
     12018-11-25  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Use float box's margin box to adjust the line constraints.
     4        https://bugs.webkit.org/show_bug.cgi?id=191961
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * fast/inline/inline-content-with-float-and-margin-expected.txt: Added.
     9        * fast/inline/inline-content-with-float-and-margin.html: Added.
     10
    1112018-11-26  Manuel Rego Casasnovas  <rego@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r238492 r238493  
     12018-11-25  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Use float box's margin box to adjust the line constraints.
     4        https://bugs.webkit.org/show_bug.cgi?id=191961
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Test: fast/inline/inline-content-with-float-and-margin.html
     9
     10        (WebCore::Layout::outputMismatchingComplexLineInformationIfNeeded):
     11        (WebCore::Layout::LayoutState::verifyAndOutputMismatchingLayoutTree const):
     12        * layout/inlineformatting/InlineFormattingContext.cpp:
     13        (WebCore::Layout::InlineFormattingContext::layoutInlineContent const):
     14
    1152018-11-26  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp

    r238482 r238493  
    288288            inlineFormattingState.floatingState().append(floatBox);
    289289
    290             auto floatBoxWidth = layoutState.displayBoxForLayoutBox(floatBox).width();
     290            auto floatBoxWidth = layoutState.displayBoxForLayoutBox(floatBox).marginBox().width();
    291291            // Shrink availble space for current line and move existing inline runs.
    292292            floatBox.isLeftFloatingPositioned() ? line.adjustLogicalLeft(floatBoxWidth) : line.adjustLogicalRight(floatBoxWidth);
  • trunk/Tools/ChangeLog

    r238486 r238493  
     12018-11-25  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Use float box's margin box to adjust the line constraints.
     4        https://bugs.webkit.org/show_bug.cgi?id=191961
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * LayoutReloaded/misc/LFC-passing-tests.txt:
     9
    1102018-11-25  Zalan Bujtas  <zalan@apple.com>
    211
  • trunk/Tools/LayoutReloaded/misc/LFC-passing-tests.txt

    r238460 r238493  
    7878fast/inline/inline-content-and-nested-formatting-root-with-margin-left-right.html
    7979fast/inline/inline-content-with-image-simple.html
     80fast/inline/inline-content-with-float-and-margin.html
    8081fast/block/basic/height-percentage-simple.html
    8182fast/block/basic/child-block-level-box-with-height-percent.html
Note: See TracChangeset for help on using the changeset viewer.