Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2575653002: [SPInvalidation] Invalidate all paint and properties for printing (Closed)
Patch Set: Rebase on third_party/WebKit/LayoutTests/TestExpectations Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698