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

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

Issue 2421133002: Disable row stretching for tables crossing fragmentainer boundaries. (Closed)
Patch Set: Use fixed line-height in test, so that it passes everywhere, not just Linux. 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fragmentation/fragmented-table-with-fixed-height-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/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index 7e781b9589895d5fe22b902de59437fa6c56b2f3..6056ef82e1ea24acedba7f9900ffc9b2b440f6e5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -647,8 +647,11 @@ void LayoutTable::layout() {
bottomSection->logicalBottom() - topSection->logicalTop();
}
- distributeExtraLogicalHeight(
- floorToInt(computedLogicalHeight - totalSectionLogicalHeight));
+ if (!state.isPaginated() ||
+ !crossesPageBoundary(tableBoxLogicalTop, computedLogicalHeight)) {
+ distributeExtraLogicalHeight(
+ floorToInt(computedLogicalHeight - totalSectionLogicalHeight));
+ }
bool isPaginated = view()->layoutState()->isPaginated();
LayoutUnit logicalOffset =
« no previous file with comments | « third_party/WebKit/LayoutTests/fragmentation/fragmented-table-with-fixed-height-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698