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

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

Issue 2736463002: [SPv2] Fix property node invalidation for CSS masks (Closed)
Patch Set: Avoid SVGRoot can of worms Created 3 years, 9 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 ObjectPaintProperties_h 5 #ifndef ObjectPaintProperties_h
6 #define ObjectPaintProperties_h 6 #define ObjectPaintProperties_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/geometry/LayoutPoint.h" 9 #include "platform/geometry/LayoutPoint.h"
10 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 10 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 if (field) { 351 if (field) {
352 field->update(std::forward<Args>(args)...); 352 field->update(std::forward<Args>(args)...);
353 return false; 353 return false;
354 } 354 }
355 field = PaintPropertyNode::create(std::forward<Args>(args)...); 355 field = PaintPropertyNode::create(std::forward<Args>(args)...);
356 return true; 356 return true;
357 } 357 }
358 358
359 void updateContentsProperties() const; 359 void updateContentsProperties() const;
360 360
361 // ATTENTION! Make sure to keep FindPropertiesNeedingUpdate.h in sync when
362 // new properites are added!
361 RefPtr<TransformPaintPropertyNode> m_paintOffsetTranslation; 363 RefPtr<TransformPaintPropertyNode> m_paintOffsetTranslation;
362 RefPtr<TransformPaintPropertyNode> m_transform; 364 RefPtr<TransformPaintPropertyNode> m_transform;
363 RefPtr<EffectPaintPropertyNode> m_effect; 365 RefPtr<EffectPaintPropertyNode> m_effect;
364 RefPtr<EffectPaintPropertyNode> m_filter; 366 RefPtr<EffectPaintPropertyNode> m_filter;
365 RefPtr<EffectPaintPropertyNode> m_mask; 367 RefPtr<EffectPaintPropertyNode> m_mask;
366 RefPtr<ClipPaintPropertyNode> m_maskClip; 368 RefPtr<ClipPaintPropertyNode> m_maskClip;
367 RefPtr<ClipPaintPropertyNode> m_cssClip; 369 RefPtr<ClipPaintPropertyNode> m_cssClip;
368 RefPtr<ClipPaintPropertyNode> m_cssClipFixedPosition; 370 RefPtr<ClipPaintPropertyNode> m_cssClipFixedPosition;
369 RefPtr<ClipPaintPropertyNode> m_innerBorderRadiusClip; 371 RefPtr<ClipPaintPropertyNode> m_innerBorderRadiusClip;
370 RefPtr<ClipPaintPropertyNode> m_overflowClip; 372 RefPtr<ClipPaintPropertyNode> m_overflowClip;
371 RefPtr<TransformPaintPropertyNode> m_perspective; 373 RefPtr<TransformPaintPropertyNode> m_perspective;
372 // TODO(pdr): Only LayoutSVGRoot needs this and it should be moved there. 374 // TODO(pdr): Only LayoutSVGRoot needs this and it should be moved there.
373 RefPtr<TransformPaintPropertyNode> m_svgLocalToBorderBoxTransform; 375 RefPtr<TransformPaintPropertyNode> m_svgLocalToBorderBoxTransform;
374 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; 376 RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
375 RefPtr<TransformPaintPropertyNode> m_scrollbarPaintOffset; 377 RefPtr<TransformPaintPropertyNode> m_scrollbarPaintOffset;
376 378
377 std::unique_ptr<PropertyTreeState> m_localBorderBoxProperties; 379 std::unique_ptr<PropertyTreeState> m_localBorderBoxProperties;
378 mutable std::unique_ptr<PropertyTreeState> m_contentsProperties; 380 mutable std::unique_ptr<PropertyTreeState> m_contentsProperties;
379 }; 381 };
380 382
381 } // namespace blink 383 } // namespace blink
382 384
383 #endif // ObjectPaintProperties_h 385 #endif // ObjectPaintProperties_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698