haikuwebkit/LayoutTests/fast/inline/simple-shrink-to-fit-inline...

14 lines
609 B
Plaintext
Raw Permalink Normal View History

[LFC][IFC] Add support for intrinsic width calculation https://bugs.webkit.org/show_bug.cgi?id=191144 Reviewed by Antti Koivisto. Source/WebCore: This is the inline formatting version of the shrink-to-fit computation. It generates inline runs and uses InlineLineBreaker to compute min/max width. This is very similar to ::layout. Test: fast/inline/simple-shrink-to-fit-inline-block.html * layout/inlineformatting/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::layout const): (WebCore::Layout::InlineFormattingContext::computeWidthAndMargin const): (WebCore::Layout::InlineFormattingContext::computeHeightAndMargin const): (WebCore::Layout::InlineFormattingContext::layoutFormattingContextRoot const): (WebCore::Layout::InlineFormattingContext::computeWidthAndHeightForReplacedInlineBox const): (WebCore::Layout::InlineFormattingContext::collectInlineContent const): (WebCore::Layout::InlineFormattingContext::instrinsicWidthConstraints const): (WebCore::Layout::InlineFormattingContext::computeWidthAndHeightForInlineBox const): Deleted. * layout/inlineformatting/InlineFormattingContext.h: Tools: * LayoutReloaded/misc/LFC-passing-tests.txt: LayoutTests: * fast/inline/simple-shrink-to-fit-inline-block-expected.txt: Added. * fast/inline/simple-shrink-to-fit-inline-block.html: Added. * platform/ios/TestExpectations: Canonical link: https://commits.webkit.org/205998@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-11-02 14:23:54 +00:00
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {DIV} at (0,0) size 300x102
RenderText {#text} at (0,1) size 86x18
text run at (0,1) width 86: "first line with"
RenderBlock {DIV} at (85,0) size 77x102 [border: (1px solid #FF0000)]
RenderText {#text} at (1,1) size 74x18
text run at (1,1) width 74: "shrink to fit"
RenderText {#text} at (161,1) size 48x18
text run at (161,1) width 48: "content"