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

Side by Side Diff: third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h

Issue 2607003002: Set needs paint property update for changes of SVG isolation and blending. (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 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 FindPropertiesNeedingUpdate_h 5 #ifndef FindPropertiesNeedingUpdate_h
6 #define FindPropertiesNeedingUpdate_h 6 #define FindPropertiesNeedingUpdate_h
7 7
8 #if DCHECK_IS_ON() 8 #if DCHECK_IS_ON()
9 namespace blink { 9 namespace blink {
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 DCHECK_OBJECT_PROPERTY_EQ(m_object, 180 DCHECK_OBJECT_PROPERTY_EQ(m_object,
181 originalBorderBox->propertyTreeState.clip(), 181 originalBorderBox->propertyTreeState.clip(),
182 objectBorderBox->propertyTreeState.clip()); 182 objectBorderBox->propertyTreeState.clip());
183 DCHECK_OBJECT_PROPERTY_EQ(m_object, 183 DCHECK_OBJECT_PROPERTY_EQ(m_object,
184 originalBorderBox->propertyTreeState.effect(), 184 originalBorderBox->propertyTreeState.effect(),
185 objectBorderBox->propertyTreeState.effect()); 185 objectBorderBox->propertyTreeState.effect());
186 DCHECK_OBJECT_PROPERTY_EQ(m_object, 186 DCHECK_OBJECT_PROPERTY_EQ(m_object,
187 originalBorderBox->propertyTreeState.scroll(), 187 originalBorderBox->propertyTreeState.scroll(),
188 objectBorderBox->propertyTreeState.scroll()); 188 objectBorderBox->propertyTreeState.scroll());
189 } else { 189 } else {
190 DCHECK_EQ(!!originalBorderBox, !!objectBorderBox); 190 DCHECK_EQ(!!originalBorderBox, !!objectBorderBox)
191 << " Object: " << m_object.debugName();
191 } 192 }
192 } else { 193 } else {
193 DCHECK_EQ(!!m_originalProperties, !!objectProperties); 194 DCHECK_EQ(!!m_originalProperties, !!objectProperties)
195 << " Object: " << m_object.debugName();
194 } 196 }
195 // Restore original clean bit. 197 // Restore original clean bit.
196 m_object.getMutableForPainting().clearNeedsPaintPropertyUpdateForTesting(); 198 m_object.getMutableForPainting().clearNeedsPaintPropertyUpdateForTesting();
197 } 199 }
198 200
199 private: 201 private:
200 const LayoutObject& m_object; 202 const LayoutObject& m_object;
201 bool m_neededPaintPropertyUpdate; 203 bool m_neededPaintPropertyUpdate;
202 bool m_neededForcedSubtreeUpdate; 204 bool m_neededForcedSubtreeUpdate;
203 std::unique_ptr<const ObjectPaintProperties> m_originalProperties; 205 std::unique_ptr<const ObjectPaintProperties> m_originalProperties;
204 }; 206 };
205 207
206 } // namespace blink 208 } // namespace blink
207 #endif // DCHECK_IS_ON() 209 #endif // DCHECK_IS_ON()
208 210
209 #endif // FindPropertiesNeedingUpdate_h 211 #endif // FindPropertiesNeedingUpdate_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698