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

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

Issue 2512163002: Force re-layout of a float when we just became unfragmented. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-float.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 1b64042e1b0b87a92d3e41a6e0e1298a907d381f..c642b3024f1d1bdd29a554a2d04271471def34bb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -3696,7 +3696,7 @@ LayoutUnit LayoutBlockFlow::positionAndLayoutFloat(
logicalTopMarginEdge + marginBeforeForChild(child));
SubtreeLayoutScope layoutScope(child);
- if (isPaginated && !child.needsLayout())
+ if (!child.needsLayout())
markChildForPaginationRelayoutIfNeeded(child, layoutScope);
child.layoutIfNeeded();
« no previous file with comments | « third_party/WebKit/LayoutTests/fragmentation/become-unfragmented-with-float.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698