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

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

Issue 2759693002: Push the top margin of floats past all useless fragmentainers. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/multicol/float-margin-at-row-boundary-expected.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 9a0a90f993fd03c929f4d54c7b9a85bba2ee6781..0593eb3415162e18c8021f87d41606d92bc725f4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -1039,8 +1039,10 @@ LayoutUnit LayoutBlockFlow::adjustFloatLogicalTopForPagination(
if (pageLogicalHeightForOffset(logicalTopMarginEdge)) {
LayoutUnit remainingSpace = pageRemainingLogicalHeightForOffset(
logicalTopMarginEdge, AssociateWithLatterPage);
- if (remainingSpace <= marginBefore)
- strut += remainingSpace;
+ if (remainingSpace <= marginBefore) {
+ strut += calculatePaginationStrutToFitContent(
+ logicalTopMarginEdge, remainingSpace, marginBefore);
+ }
}
}
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/multicol/float-margin-at-row-boundary-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698