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

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

Issue 1224893004: Turn FrameView's paintBehavior into a real global (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed unused variable warning. 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/PaintPhase.h
diff --git a/Source/core/paint/PaintPhase.h b/Source/core/paint/PaintPhase.h
index df3be5b860519d1c4b1e5b363599c48ac5de856b..9f0c5f6692a1b3d659c32d15e1b719e4c8c312f3 100644
--- a/Source/core/paint/PaintPhase.h
+++ b/Source/core/paint/PaintPhase.h
@@ -57,8 +57,6 @@ enum PaintPhase {
enum PaintBehaviorFlags {
PaintBehaviorNormal = 0,
- PaintBehaviorSelectionOnly = 1 << 0,
- PaintBehaviorFlattenCompositingLayers = 1 << 2,
PaintBehaviorRenderingClipPathAsMask = 1 << 3,
PaintBehaviorSkipRootBackground = 1 << 4,
PaintBehaviorRootBackgroundOnly = 1 << 5
@@ -66,6 +64,26 @@ enum PaintBehaviorFlags {
typedef unsigned PaintBehavior;
+// Those flags are meant as global tree operations. This means
+// that they should be constant for a paint phase.
+// TODO(jchaffraix): We should pass these as a const variable
leviw_travelin_and_unemployed 2015/07/07 20:33:16 GoodFirstBug? :p
+// during paint to ensure they are not modified.
+enum GlobalPaintFlag {
+ GlobalPaintNoFlag = 0,
leviw_travelin_and_unemployed 2015/07/07 20:33:16 What does this mean? How do we expect the system t
Julien - ping for review 2015/07/08 01:16:30 The flags are used to change the way we paint in a
+ // Used when painting selection as part of a drag-image. This
+ // flag bypasses a lot of the painting code. TODO: What is the
leviw_travelin_and_unemployed 2015/07/07 20:33:16 More TODOs without your name. Why this TODO? You
Julien - ping for review 2015/07/08 01:16:30 Sure but looking for breakage will not yield to be
+ // intent of this code? Is it still needed?
+ GlobalPaintSelectionOnly = 1 << 0,
leviw_travelin_and_unemployed 2015/07/07 21:39:46 We should probably rename this to GlobalPaintPaint
Julien - ping for review 2015/07/08 01:16:30 It's actually really about painting only selection
+ // Used when painting a drag-image or printing in order to
+ // ignore the hardware layers and paint the whole tree
+ // into the topmost layer.
+ GlobalPaintFlattenCompositingLayers = 1 << 1
+};
+
+typedef unsigned GlobalPaintFlags;
+
+extern GlobalPaintFlags gGlobalPaintFlags;
+
} // namespace blink
#endif // PaintPhase_h

Powered by Google App Engine
This is Rietveld 408576698