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

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

Issue 2651093003: Make scroll translation transform nodes reference scroll nodes (Closed)
Patch Set: Add note about scroll tree differences 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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 #if DCHECK_IS_ON() 121 #if DCHECK_IS_ON()
122 // Dumps the tree from this state up to the root as a string. 122 // Dumps the tree from this state up to the root as a string.
123 String toTreeString() const; 123 String toTreeString() const;
124 #endif 124 #endif
125 125
126 private: 126 private:
127 RefPtr<const TransformPaintPropertyNode> m_transform; 127 RefPtr<const TransformPaintPropertyNode> m_transform;
128 RefPtr<const ClipPaintPropertyNode> m_clip; 128 RefPtr<const ClipPaintPropertyNode> m_clip;
129 RefPtr<const EffectPaintPropertyNode> m_effect; 129 RefPtr<const EffectPaintPropertyNode> m_effect;
130 // TODO(pdr): Remove the scroll node from PropertyTreeState.
130 RefPtr<const ScrollPaintPropertyNode> m_scroll; 131 RefPtr<const ScrollPaintPropertyNode> m_scroll;
131 }; 132 };
132 133
133 inline bool operator==(const PropertyTreeState& a, const PropertyTreeState& b) { 134 inline bool operator==(const PropertyTreeState& a, const PropertyTreeState& b) {
134 return a.transform() == b.transform() && a.clip() == b.clip() && 135 return a.transform() == b.transform() && a.clip() == b.clip() &&
135 a.effect() == b.effect() && a.scroll() == b.scroll(); 136 a.effect() == b.effect() && a.scroll() == b.scroll();
136 } 137 }
137 138
138 // Iterates over the sequence transforms, clips and effects for a 139 // Iterates over the sequence transforms, clips and effects for a
139 // PropertyTreeState between that state and the "root" state (all nodes equal 140 // PropertyTreeState between that state and the "root" state (all nodes equal
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 192 }
192 193
193 HashMap<const PropertyTreeNode*, String> m_nodeToDebugString; 194 HashMap<const PropertyTreeNode*, String> m_nodeToDebugString;
194 }; 195 };
195 196
196 #endif 197 #endif
197 198
198 } // namespace blink 199 } // namespace blink
199 200
200 #endif // PropertyTreeState_h 201 #endif // PropertyTreeState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698