Title: [285925] trunk/Source/WebCore
Revision
285925
Author
[email protected]
Date
2021-11-17 06:19:54 -0800 (Wed, 17 Nov 2021)

Log Message

[IFC][Integration] Clear the preferredLogicalWidths dirty bits after calling LineLayout::computeIntrinsicWidthConstraints
https://bugs.webkit.org/show_bug.cgi?id=233201

Reviewed by Antti Koivisto.

This is in preparation for enabling preferred width computation through IFC.

* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::tryComputePreferredWidthsUsingModernPath):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (285924 => 285925)


--- trunk/Source/WebCore/ChangeLog	2021-11-17 12:50:39 UTC (rev 285924)
+++ trunk/Source/WebCore/ChangeLog	2021-11-17 14:19:54 UTC (rev 285925)
@@ -1,3 +1,15 @@
+2021-11-17  Alan Bujtas  <[email protected]>
+
+        [IFC][Integration] Clear the preferredLogicalWidths dirty bits after calling LineLayout::computeIntrinsicWidthConstraints
+        https://bugs.webkit.org/show_bug.cgi?id=233201
+
+        Reviewed by Antti Koivisto.
+
+        This is in preparation for enabling preferred width computation through IFC.
+
+        * rendering/RenderBlockFlow.cpp:
+        (WebCore::RenderBlockFlow::tryComputePreferredWidthsUsingModernPath):
+
 2021-11-17  Rob Buis  <[email protected]>
 
         Limit logical width over-constrained direction check

Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.cpp (285924 => 285925)


--- trunk/Source/WebCore/rendering/RenderBlockFlow.cpp	2021-11-17 12:50:39 UTC (rev 285924)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp	2021-11-17 14:19:54 UTC (rev 285925)
@@ -4577,7 +4577,10 @@
         m_lineLayout = makeUnique<LayoutIntegration::LineLayout>(*this);
 
     std::tie(minLogicalWidth, maxLogicalWidth) = modernLineLayout()->computeIntrinsicWidthConstraints();
+    for (auto walker = InlineWalker(*this); !walker.atEnd(); walker.advance())
+        walker.current()->setPreferredLogicalWidthsDirty(false);
     return true;
+    return true;
 #else
     UNUSED_PARAM(minLogicalWidth);
     UNUSED_PARAM(maxLogicalWidth);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to