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

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

Issue 2412923002: Top-align table cells in rows that cross fragmentainer boundaries. (Closed)
Patch Set: Let's keep the pagination strut substraction thing a bit longer, since removing it affects some DRT… 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index f1809eda34c3899fbb409c5579a24cc202894627..494a7125230755c693df355743baf377e597eda6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -5501,6 +5501,14 @@ LayoutUnit LayoutBox::pageRemainingLogicalHeightForOffset(
pageBoundaryRule);
}
+bool LayoutBox::crossesPageBoundary(LayoutUnit offset,
+ LayoutUnit logicalHeight) const {
+ if (!view()->layoutState()->pageLogicalHeight())
+ return false;
+ return pageRemainingLogicalHeightForOffset(offset, AssociateWithLatterPage) <
+ logicalHeight;
+}
+
LayoutUnit LayoutBox::calculatePaginationStrutToFitContent(
LayoutUnit offset,
LayoutUnit strutToNextPage,
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698