| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index d11d1f74a4609fdcb0c9878323255e41ab740442..3071f365b4ad1e0b541a4569ad507af71d76794b 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -471,8 +471,10 @@ 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->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
|
| + }
|
| view()->layout();
|
| view()->adjustViewSize();
|
| }
|
|
|