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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h

Issue 2647063002: Move property tree debugging code to platform/graphics/paint/ (try #2) (Closed)
Patch Set: none Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ClipPaintPropertyNode_h 5 #ifndef ClipPaintPropertyNode_h
6 #define ClipPaintPropertyNode_h 6 #define ClipPaintPropertyNode_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/FloatRoundedRect.h" 9 #include "platform/geometry/FloatRoundedRect.h"
10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking 71 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking
72 // if a clip node has changed. 72 // if a clip node has changed.
73 bool operator==(const ClipPaintPropertyNode& o) const { 73 bool operator==(const ClipPaintPropertyNode& o) const {
74 return m_parent == o.m_parent && 74 return m_parent == o.m_parent &&
75 m_localTransformSpace == o.m_localTransformSpace && 75 m_localTransformSpace == o.m_localTransformSpace &&
76 m_clipRect == o.m_clipRect && 76 m_clipRect == o.m_clipRect &&
77 m_directCompositingReasons == o.m_directCompositingReasons; 77 m_directCompositingReasons == o.m_directCompositingReasons;
78 } 78 }
79
80 String toTreeString() const;
79 #endif 81 #endif
80 82
81 String toString() const; 83 String toString() const;
82 84
83 bool hasDirectCompositingReasons() const { 85 bool hasDirectCompositingReasons() const {
84 return m_directCompositingReasons != CompositingReasonNone; 86 return m_directCompositingReasons != CompositingReasonNone;
85 } 87 }
86 88
87 private: 89 private:
88 ClipPaintPropertyNode( 90 ClipPaintPropertyNode(
(...skipping 12 matching lines...) Expand all
101 CompositingReasons m_directCompositingReasons; 103 CompositingReasons m_directCompositingReasons;
102 }; 104 };
103 105
104 // Redeclared here to avoid ODR issues. 106 // Redeclared here to avoid ODR issues.
105 // See platform/testing/PaintPrinters.h. 107 // See platform/testing/PaintPrinters.h.
106 void PrintTo(const ClipPaintPropertyNode&, std::ostream*); 108 void PrintTo(const ClipPaintPropertyNode&, std::ostream*);
107 109
108 } // namespace blink 110 } // namespace blink
109 111
110 #endif // ClipPaintPropertyNode_h 112 #endif // ClipPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698