Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2462643002: Be more restrictive about forcing relayout of children for pagination. (Closed)
Patch Set: No need to call updateFragmentationInfoForChild() when not paginated. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 6345b2623173c4bc3678fd28cbf50691e354cd78..50d31e52953136ab3c4787c65354f2634f18ed0a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -827,6 +827,9 @@ void LayoutBlock::layoutPositionedObjects(bool relayoutChildren,
if (!layoutChanged && needsBlockDirectionLocationSetBeforeLayout &&
logicalTopEstimate != logicalTopForChild(*positionedObject))
positionedObject->forceChildLayout();
+
+ if (isPaginated)
+ updateFragmentationInfoForChild(*positionedObject);
}
}

Powered by Google App Engine
This is Rietveld 408576698