Index: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
index e61330f627b20adb5573cbed021e4f94f03863f1..94d4263d1d2d338a29a17a9e2ea44cd9f0a5dbd5 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
@@ -1279,7 +1279,10 @@ int LayoutTableSection::paginationStrutForRow(LayoutTableRow* row, |
// completely. No point in leaving a page completely blank. |
return 0; |
} |
- return paginationStrut.toInt(); |
+ // Table layout parts only work on integers, so we have to round. Round up, to |
+ // make sure that no fraction ever gets left behind in the previous |
+ // fragmentainer. |
+ return paginationStrut.ceil(); |
} |
void LayoutTableSection::computeOverflowFromCells() { |