| 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" |
| 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| 8 #include "wtf/HashFunctions.h" | 11 #include "wtf/HashFunctions.h" |
| 9 #include "wtf/HashTraits.h" | 12 #include "wtf/HashTraits.h" |
| 10 | 13 |
| 11 namespace blink { | 14 namespace blink { |
| 12 | 15 |
| 13 class TransformPaintPropertyNode; | |
| 14 class ClipPaintPropertyNode; | |
| 15 class EffectPaintPropertyNode; | |
| 16 | |
| 17 // Represents the combination of transform, clip and effect nodes for a particul
ar coordinate space. | 16 // Represents the combination of transform, clip and effect nodes for a particul
ar coordinate space. |
| 18 // See GeometryMapper. | 17 // See GeometryMapper. |
| 19 struct PropertyTreeState { | 18 struct PropertyTreeState { |
| 20 PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {} | 19 PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {} |
| 21 | 20 |
| 22 PropertyTreeState( | 21 PropertyTreeState( |
| 23 const TransformPaintPropertyNode* transform, | 22 const TransformPaintPropertyNode* transform, |
| 24 const ClipPaintPropertyNode* clip, | 23 const ClipPaintPropertyNode* clip, |
| 25 const EffectPaintPropertyNode* effect) | 24 const EffectPaintPropertyNode* effect) |
| 26 : transform(transform), clip(clip), effect(effect) {} | 25 : transform(transform), clip(clip), effect(effect) {} |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 while (a != b) { | 63 while (a != b) { |
| 65 a = a->parent(); | 64 a = a->parent(); |
| 66 b = b->parent(); | 65 b = b->parent(); |
| 67 } | 66 } |
| 68 return a; | 67 return a; |
| 69 } | 68 } |
| 70 | 69 |
| 71 } // namespace blink | 70 } // namespace blink |
| 72 | 71 |
| 73 #endif // PropertyTreeState_h | 72 #endif // PropertyTreeState_h |
| OLD | NEW |