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

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

Issue 2575653002: [SPInvalidation] Invalidate all paint and properties for printing (Closed)
Patch Set: Add a passing test in 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 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);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698