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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h

Issue 2299533002: WIP: Construct SPV2's scroll paint property tree (Closed)
Patch Set: Add more paint property builder tests, update comments/documentation" Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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 a6427036a5eb3867cfaa575cc48a0595a75f8ce1..e0fa2c1af60f299f0fecf1408770ddf6a7828193 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h
@@ -7,6 +7,7 @@
#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 "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
@@ -28,10 +29,10 @@ struct PaintChunkProperties {
PaintChunkProperties() : backfaceHidden(false) { }
- // TODO(pdr): Add scroll properties.
RefPtr<const TransformPaintPropertyNode> transform;
RefPtr<const ClipPaintPropertyNode> clip;
RefPtr<const EffectPaintPropertyNode> effect;
+ RefPtr<const ScrollPaintPropertyNode> scroll;
bool backfaceHidden;
};
@@ -42,6 +43,7 @@ inline bool operator==(const PaintChunkProperties& a, const PaintChunkProperties
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()
&& a.backfaceHidden == b.backfaceHidden;
}

Powered by Google App Engine
This is Rietveld 408576698