Chromium Code Reviews| 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 85aea69982c62d1c1e0188b4d994188cfb070e7e..a177b66f1abc6f6240b8531d4e579c3e572cb9e5 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp |
| @@ -1151,6 +1151,8 @@ void LayoutBlockFlow::AdjustLinePositionForPagination(RootInlineBox& line_box, |
| LayoutUnit remaining_logical_height = PageRemainingLogicalHeightForOffset( |
| logical_offset, kAssociateWithLatterPage); |
| int line_index = LineCount(&line_box); |
| + // We need to detect if we overlap a repeating footer and if so take the |
|
mstensho (USE GERRIT)
2017/08/01 18:58:18
Probably don't want this comment anymore.
|
| + // full remaining logical height as our strut to the next page. |
| if (remaining_logical_height < line_height || |
| (ShouldBreakAtLineToAvoidWidow() && |
| LineBreakToAvoidWidow() == line_index)) { |