[LFC][IFC] Add intrinsic width support for basic inline containers
[WebKit-https.git] / Source / WebCore / ChangeLog
index 38a3ec0..8efacff 100644 (file)
@@ -1,3 +1,24 @@
+2019-02-09  Zalan Bujtas  <zalan@apple.com>
+
+        [LFC][IFC] Add intrinsic width support for basic inline containers
+        https://bugs.webkit.org/show_bug.cgi?id=194473
+
+        Reviewed by Antti Koivisto.
+
+        Preferred width computation logic is very similar to normal layout.
+        One of the main difference is that the preferred width codepath does not provide valid containing block width.
+        This patch implement basic inline container support by passing nullopt containing block width in UsedHorizontalValues. 
+
+        * layout/inlineformatting/InlineFormattingContext.cpp:
+        (WebCore::Layout::InlineFormattingContext::layout const):
+        (WebCore::Layout::InlineFormattingContext::instrinsicWidthConstraints const):
+        (WebCore::Layout::InlineFormattingContext::computeBorderAndPadding const):
+        (WebCore::Layout::InlineFormattingContext::computeMarginBorderAndPadding const):
+        (WebCore::Layout::InlineFormattingContext::computeWidthAndMargin const):
+        (WebCore::Layout::InlineFormattingContext::layoutFormattingContextRoot const):
+        (WebCore::Layout::InlineFormattingContext::computeWidthAndHeightForReplacedInlineBox const):
+        * layout/inlineformatting/InlineFormattingContext.h:
+
 2019-02-08  Myles C. Maxfield  <mmaxfield@apple.com>
 
         [Cocoa] CTLineGetGlyphRuns() might return nullptr