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

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

Issue 2404213004: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Fix bug in how svg local to border box was updated, no longer crash in tests Created 4 years, 2 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/EffectPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
index 94b9519480df322e950ba412367622d75bc60bf2..77eb064b2f512bb9415b29a636d9a7ea0a6b7017 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
@@ -37,6 +37,14 @@ class PLATFORM_EXPORT EffectPaintPropertyNode
m_opacity = opacity;
}
+ PassRefPtr<EffectPaintPropertyNode> clone() const {
+ return adoptRef(new EffectPaintPropertyNode(m_parent, m_opacity));
+ }
+
+ bool operator==(const EffectPaintPropertyNode& o) const {
+ return m_parent == o.m_parent && m_opacity == o.m_opacity;
+ }
+
float opacity() const { return m_opacity; }
// Parent effect or nullptr if this is the root effect.

Powered by Google App Engine
This is Rietveld 408576698