| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index d11d1f74a4609fdcb0c9878323255e41ab740442..a1b7c4a0b2952aeccfc9850abba848407982b293 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -471,8 +471,11 @@ void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo
|
| if (shouldUsePrintingLayout()) {
|
| view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShrinkRatio);
|
| } else {
|
| - if (LayoutView* layoutView = view()->layoutView())
|
| - layoutView->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::PrintingChanged);
|
| + if (LayoutView* layoutView = view()->layoutView()) {
|
| + layoutView->setPreferredLogicalWidthsDirty();
|
| + layoutView->setNeedsLayout(LayoutInvalidationReason::PrintingChanged);
|
| + layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
|
| + }
|
| view()->layout();
|
| view()->adjustViewSize();
|
| }
|
|
|