[LFC][IFC] Offset formatting context root runs with horizontal margins.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Nov 2018 18:51:33 +0000 (18:51 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Nov 2018 18:51:33 +0000 (18:51 +0000)
commitc9dcfc56c1b601256a71480836f230fb58c9909f
treeac305b1900532909fc5725a10a209388891b5020
parent9083223d5adb750829bc249d2ff23c6cae802984
[LFC][IFC] Offset formatting context root runs with horizontal margins.
https://bugs.webkit.org/show_bug.cgi?id=191900

Reviewed by Antti Koivisto.

Source/WebCore:

Inline runs generated by formatting roots (inline-block) need to be adjusted with the horizontal margins.
(The test case has padding and border as well, but they are _inside_ the formatting context.)

Test: fast/inline/inline-content-and-nested-formatting-root-with-margin-left-right.html

* layout/inlineformatting/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::collectInlineContentForSubtree const):

Tools:

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

LayoutTests:

* fast/inline/inline-content-and-nested-formatting-root-with-margin-left-right-expected.txt: Added.
* fast/inline/inline-content-and-nested-formatting-root-with-margin-left-right.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/inline/inline-content-and-nested-formatting-root-with-margin-left-right-expected.txt [new file with mode: 0644]
LayoutTests/fast/inline/inline-content-and-nested-formatting-root-with-margin-left-right.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp
Tools/ChangeLog
Tools/LayoutReloaded/misc/LFC-passing-tests.txt