Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h |
| index 2f095e49575a5243d506470509a6bdc295a2ad9d..3c01052709ec1274e6e161d9b1e9914e51400f29 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h |
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h |
| @@ -5,10 +5,7 @@ |
| #ifndef PaintChunkProperties_h |
| #define PaintChunkProperties_h |
| -#include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| -#include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| -#include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
| -#include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| +#include "platform/graphics/paint/PropertyTreeState.h" |
| #include "wtf/Allocator.h" |
| #include "wtf/Noncopyable.h" |
| #include <iosfwd> |
| @@ -27,13 +24,15 @@ namespace blink { |
| struct PaintChunkProperties { |
| DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| - PaintChunkProperties() : backfaceHidden(false) {} |
| + PaintChunkProperties(const PropertyTreeState& state) |
| + : propertyTreeState(state), backfaceHidden(false) {} |
| + |
| + PaintChunkProperties() |
| + : propertyTreeState(nullptr, nullptr, nullptr, nullptr), |
| + backfaceHidden(false) {} |
| // TODO(pdr): Refactor these to use PropertyTreeState. |
|
pdr.
2016/12/13 18:27:10
Please remove this comment
chrishtr
2016/12/13 21:03:40
Done.
|
| - RefPtr<const TransformPaintPropertyNode> transform; |
| - RefPtr<const ClipPaintPropertyNode> clip; |
| - RefPtr<const EffectPaintPropertyNode> effect; |
| - RefPtr<const ScrollPaintPropertyNode> scroll; |
| + PropertyTreeState propertyTreeState; |
| bool backfaceHidden; |
| }; |
| @@ -41,9 +40,7 @@ struct PaintChunkProperties { |
| // crawling the entire property tree to compute. |
| inline bool operator==(const PaintChunkProperties& a, |
| const PaintChunkProperties& b) { |
| - return a.transform.get() == b.transform.get() && |
| - a.clip.get() == b.clip.get() && a.effect.get() == b.effect.get() && |
| - a.scroll.get() == b.scroll.get() && |
| + return a.propertyTreeState == b.propertyTreeState && |
| a.backfaceHidden == b.backfaceHidden; |
| } |