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

Unified Diff: Source/core/paint/PaintInfo.h

Issue 1236183003: Add 'printing' flag to PaintInfo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move flag to PaintInfo. Created 5 years, 5 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: Source/core/paint/PaintInfo.h
diff --git a/Source/core/paint/PaintInfo.h b/Source/core/paint/PaintInfo.h
index 0277e60134a77e4505302cc2ca57c8497948cfe9..2428be89b0f28e70c9b876bc586c434a5ebaf116 100644
--- a/Source/core/paint/PaintInfo.h
+++ b/Source/core/paint/PaintInfo.h
@@ -78,6 +78,7 @@ struct PaintInfo {
bool skipRootBackground() const { return paintBehavior & PaintBehaviorSkipRootBackground; }
bool paintRootBackgroundOnly() const { return paintBehavior & PaintBehaviorRootBackgroundOnly; }
+ bool printing() const { return paintBehavior & PaintBehaviorPrintAdaption; }
Julien - ping for review 2015/07/15 17:14:25 Our booleans are usually prefixed by is / did.
fs 2015/07/15 18:25:58 Was trying to not stray too from the other method
DisplayItem::Type displayItemTypeForClipping() const { return DisplayItem::paintPhaseToClipBoxType(phase); }

Powered by Google App Engine
This is Rietveld 408576698