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

Unified Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
index 76bdf538d223c294dea6c746907753393822f830..c335cd72ef242b9a16bcfed5d9b76916b1deb389 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -53,6 +53,14 @@ bool PrePaintTreeWalk::walk(FrameView& frameView,
}
PrePaintTreeWalkContext localContext(context);
+
+ if (frameView.shouldInvalidateAllPaintAndPaintProperties()) {
+ localContext.treeBuilderContext.forceSubtreeUpdate = true;
+ localContext.paintInvalidatorContext.forcedSubtreeInvalidationFlags |=
+ PaintInvalidatorContext::ForcedWholeTreeFullInvalidation;
+ frameView.clearShouldInvalidateAllPaintAndPaintProperties();
+ }
+
m_propertyTreeBuilder.updateProperties(frameView,
localContext.treeBuilderContext);
m_paintInvalidator.invalidatePaintIfNeeded(
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698