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 67220a38a40ef07f25b25f0f65501b806b7d11b6..759bc27278264e8e7bfed81eab7b2539a463d47f 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -591,7 +591,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(); |
@@ -604,6 +605,9 @@ void LocalFrame::setPrinting(bool printing, |
toLocalFrame(child)->setPrinting(printing, FloatSize(), FloatSize(), 0); |
} |
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) |
+ view()->setShouldInvalidateAllPaintAndPaintProperties(); |
+ |
if (!printing) |
document()->setPrinting(Document::NotPrinting); |
} |