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

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

Issue 2606863002: Complete XXXPaintPropertyNode::operator== and toString() (Closed)
Patch Set: - 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 return adoptRef(new ClipPaintPropertyNode(m_parent, m_localTransformSpace, 64 return adoptRef(new ClipPaintPropertyNode(m_parent, m_localTransformSpace,
65 m_clipRect, 65 m_clipRect,
66 m_directCompositingReasons)); 66 m_directCompositingReasons));
67 } 67 }
68 68
69 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking 69 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking
70 // if a clip node has changed. 70 // if a clip node has changed.
71 bool operator==(const ClipPaintPropertyNode& o) const { 71 bool operator==(const ClipPaintPropertyNode& o) const {
72 return m_parent == o.m_parent && 72 return m_parent == o.m_parent &&
73 m_localTransformSpace == o.m_localTransformSpace && 73 m_localTransformSpace == o.m_localTransformSpace &&
74 m_clipRect == o.m_clipRect; 74 m_clipRect == o.m_clipRect &&
75 m_directCompositingReasons == o.m_directCompositingReasons;
75 } 76 }
76 #endif 77 #endif
77 78
78 String toString() const; 79 String toString() const;
79 80
80 bool hasDirectCompositingReasons() const { 81 bool hasDirectCompositingReasons() const {
81 return m_directCompositingReasons != CompositingReasonNone; 82 return m_directCompositingReasons != CompositingReasonNone;
82 } 83 }
83 84
84 private: 85 private:
(...skipping 13 matching lines...) Expand all
98 CompositingReasons m_directCompositingReasons; 99 CompositingReasons m_directCompositingReasons;
99 }; 100 };
100 101
101 // Redeclared here to avoid ODR issues. 102 // Redeclared here to avoid ODR issues.
102 // See platform/testing/PaintPrinters.h. 103 // See platform/testing/PaintPrinters.h.
103 void PrintTo(const ClipPaintPropertyNode&, std::ostream*); 104 void PrintTo(const ClipPaintPropertyNode&, std::ostream*);
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // ClipPaintPropertyNode_h 108 #endif // ClipPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698