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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2747623002: Avoid clearing a page's layout overflow after paginated layout (Closed)
Patch Set: bug 664235 Created 3 years, 9 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/printing/respect-layout-overflow-from-pagination-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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 6e8030fca4ea558c1c7cc5a6ddd66c0f999ffc1b..e9a031681b6f48d1cd1e4e32b38382a792613d41 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3512,9 +3512,11 @@ void FrameView::forceLayoutForPagination(const FloatSize& pageSize,
if (!horizontalWritingMode)
overflow = overflow.transposedRect();
+ adjustViewSizeAndLayout();
+ // This is how we clip in case we overflow again.
layoutView->clearLayoutOverflow();
- layoutView->addLayoutOverflow(
- overflow); // This is how we clip in case we overflow again.
+ layoutView->addLayoutOverflow(overflow);
+ return;
}
}
« no previous file with comments | « third_party/WebKit/LayoutTests/printing/respect-layout-overflow-from-pagination-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698