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

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

Issue 2413413003: Correctly check if we have a valid page height before checking remaining space. (Closed)
Patch Set: 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 4efa03050f40a98c87c8f2eb2a29de05de72c16d..eb291d4596f8b4c335f77502abe67e4f1bfbd140 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -5504,7 +5504,7 @@ LayoutUnit LayoutBox::pageRemainingLogicalHeightForOffset(
bool LayoutBox::crossesPageBoundary(LayoutUnit offset,
LayoutUnit logicalHeight) const {
- if (!view()->layoutState()->pageLogicalHeight())
+ if (!pageLogicalHeightForOffset(offset))
return false;
return pageRemainingLogicalHeightForOffset(offset, AssociateWithLatterPage) <
logicalHeight;

Powered by Google App Engine
This is Rietveld 408576698