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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp

Issue 2672983003: Implements PrintBrowser mode. (Closed)
Patch Set: Add tests and respond to comments Created 3 years, 10 months 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/paint/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 162dba32b6183e8b0deb73e4ab29ff2b4d503dc2..e88216e05e791403247e53604586649e878461ab 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -391,7 +391,8 @@ void PaintInvalidator::invalidatePaintIfNeeded(
updatePaintingLayer(object, context);
- if (object.document().printing())
+ if (object.document().printing() &&
+ !RuntimeEnabledFeatures::printBrowserEnabled())
return; // Don't invalidate paints if we're printing.
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"),

Powered by Google App Engine
This is Rietveld 408576698