| 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;
|
| }
|
| }
|
|
|
|
|