| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index c5b2158145c0e2df2d15d8fad69158b28491d77d..a784ada3d34fb006a2ac24ae8803776dc27d9247 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -588,7 +588,8 @@ void LocalFrame::setPrinting(bool printing,
|
| if (LayoutView* layoutView = view()->layoutView()) {
|
| layoutView->setPreferredLogicalWidthsDirty();
|
| layoutView->setNeedsLayout(LayoutInvalidationReason::PrintingChanged);
|
| - layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
|
| + if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
|
| + layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
|
| }
|
| view()->layout();
|
| view()->adjustViewSize();
|
| @@ -601,6 +602,9 @@ void LocalFrame::setPrinting(bool printing,
|
| toLocalFrame(child)->setPrinting(printing, FloatSize(), FloatSize(), 0);
|
| }
|
|
|
| + if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
|
| + view()->setShouldInvalidateAllPaintAndPaintProperties();
|
| +
|
| if (!printing)
|
| document()->setPrinting(Document::NotPrinting);
|
| }
|
|
|