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

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

Issue 2584143003: Repeat footers in paginated context (Closed)
Patch Set: bug 656232 Created 3 years, 6 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/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 476208fca2f92c27eba76c522faa3754e738b95a..4899439a76c88938f020ee90057126b2a5c20d9a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -1138,8 +1138,10 @@ void LayoutBlockFlow::AdjustLinePositionForPagination(RootInlineBox& line_box,
LayoutUnit page_logical_height = PageLogicalHeightForOffset(logical_offset);
LayoutUnit remaining_logical_height = PageRemainingLogicalHeightForOffset(
logical_offset, kAssociateWithLatterPage);
+ LayoutUnit remaining_logical_height_including_footer =
+ remaining_logical_height - layout_state->HeightOffsetForTableFooters();
mstensho (USE GERRIT) 2017/06/16 08:43:05 Isn't this something that belongs inside PageRemai
rhogan 2017/06/20 18:46:05 I've explained why I think this is the way to do i
int line_index = LineCount(&line_box);
- if (remaining_logical_height < line_height ||
+ if (remaining_logical_height_including_footer < line_height ||
(ShouldBreakAtLineToAvoidWidow() &&
LineBreakToAvoidWidow() == line_index)) {
LayoutUnit pagination_strut = CalculatePaginationStrutToFitContent(

Powered by Google App Engine
This is Rietveld 408576698