| 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 0dd84a95a5ef36fce829705d9844611ab5a2c578..c326481f5ba15bd0db0e278de0f2c1eb54600961 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4265,6 +4265,12 @@ bool LayoutBox::hasUnsplittableScrollingOverflow() const
|
| if ((isHorizontal && !scrollsOverflowY()) || (!isHorizontal && !scrollsOverflowX()))
|
| return false;
|
|
|
| + // Fragmenting scrollbars is only problematic in interactive media, e.g. multicol on a
|
| + // screen. If we're printing, which is non-interactive media, we should allow objects with
|
| + // non-visible overflow to be paginated as normally.
|
| + if (document().printing())
|
| + return false;
|
| +
|
| // We do have overflow. We'll still be willing to paginate as long as the block
|
| // has auto logical height, auto or undefined max-logical-height and a zero or auto min-logical-height.
|
| // Note this is just a heuristic, and it's still possible to have overflow under these
|
|
|