| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 PropertyTreeState_h | 5 #ifndef PropertyTreeState_h |
| 6 #define PropertyTreeState_h | 6 #define PropertyTreeState_h |
| 7 | 7 |
| 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| 10 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | 10 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 m_scroll = node; | 67 m_scroll = node; |
| 68 DCHECK(!node->hasOneRef()); | 68 DCHECK(!node->hasOneRef()); |
| 69 } | 69 } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 RefPtr<const TransformPaintPropertyNode> m_transform; | 72 RefPtr<const TransformPaintPropertyNode> m_transform; |
| 73 RefPtr<const ClipPaintPropertyNode> m_clip; | 73 RefPtr<const ClipPaintPropertyNode> m_clip; |
| 74 RefPtr<const EffectPaintPropertyNode> m_effect; | 74 RefPtr<const EffectPaintPropertyNode> m_effect; |
| 75 RefPtr<const ScrollPaintPropertyNode> m_scroll; | 75 RefPtr<const ScrollPaintPropertyNode> m_scroll; |
| 76 }; | 76 }; |
| 77 |
| 78 inline bool operator==(const PropertyTreeState& a, const PropertyTreeState& b) { |
| 79 return a.transform() == b.transform() && a.clip() == b.clip() && |
| 80 a.effect() == b.effect() && a.scroll() == b.scroll(); |
| 81 } |
| 82 |
| 77 } // namespace blink | 83 } // namespace blink |
| 78 | 84 |
| 79 #endif // PropertyTreeState_h | 85 #endif // PropertyTreeState_h |
| OLD | NEW |