Title: [281338] trunk/Source/WebCore
- Revision
- 281338
- Author
- za...@apple.com
- Date
- 2021-08-20 14:28:00 -0700 (Fri, 20 Aug 2021)
Log Message
[LFC][Integration] Use the logical width when passing in the constraint for the inline content
https://bugs.webkit.org/show_bug.cgi?id=228942
Reviewed by Simon Fraser.
Let's pass in the logical width (e.g. block box's height in case of vertical writing direction) to the inline line layout.
* layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::layout):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (281337 => 281338)
--- trunk/Source/WebCore/ChangeLog 2021-08-20 21:24:44 UTC (rev 281337)
+++ trunk/Source/WebCore/ChangeLog 2021-08-20 21:28:00 UTC (rev 281338)
@@ -1,5 +1,17 @@
2021-08-20 Alan Bujtas <za...@apple.com>
+ [LFC][Integration] Use the logical width when passing in the constraint for the inline content
+ https://bugs.webkit.org/show_bug.cgi?id=228942
+
+ Reviewed by Simon Fraser.
+
+ Let's pass in the logical width (e.g. block box's height in case of vertical writing direction) to the inline line layout.
+
+ * layout/integration/LayoutIntegrationLineLayout.cpp:
+ (WebCore::LayoutIntegration::LineLayout::layout):
+
+2021-08-20 Alan Bujtas <za...@apple.com>
+
[LFC][IFC] Add support for justified non-breaking space
https://bugs.webkit.org/show_bug.cgi?id=228727
Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp (281337 => 281338)
--- trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp 2021-08-20 21:24:44 UTC (rev 281337)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp 2021-08-20 21:28:00 UTC (rev 281338)
@@ -215,7 +215,7 @@
auto inlineFormattingContext = Layout::InlineFormattingContext { rootLayoutBox(), m_inlineFormattingState };
auto invalidationState = Layout::InvalidationState { };
- auto horizontalConstraints = Layout::HorizontalConstraints { flow().borderAndPaddingStart(), flow().contentSize().width() };
+ auto horizontalConstraints = Layout::HorizontalConstraints { flow().borderAndPaddingStart(), flow().contentLogicalWidth() };
inlineFormattingContext.lineLayoutForIntergration(invalidationState, { horizontalConstraints, flow().borderAndPaddingBefore() });
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes