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

Unified Diff: Source/core/svg/SVGFilterPrimitiveStandardAttributes.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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
« no previous file with comments | « Source/core/svg/SVGFilterElement.cpp ('k') | Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFilterPrimitiveStandardAttributes.h
diff --git a/Source/core/svg/SVGFilterPrimitiveStandardAttributes.h b/Source/core/svg/SVGFilterPrimitiveStandardAttributes.h
index a05c92c21fec8d465f456837e181903024de84ac..1bdab5b679b6b4bc93546f3844a64556ff7db805 100644
--- a/Source/core/svg/SVGFilterPrimitiveStandardAttributes.h
+++ b/Source/core/svg/SVGFilterPrimitiveStandardAttributes.h
@@ -24,6 +24,7 @@
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGAnimatedString.h"
#include "core/svg/SVGElement.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -40,7 +41,7 @@ class SVGFilterPrimitiveStandardAttributes : public SVGElement {
public:
void setStandardAttributes(FilterEffect*) const;
- virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter* filter) = 0;
+ virtual PassRefPtrWillBeRawPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) = 0;
// Returns true, if the new value is different from the old one.
virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&);
@@ -51,6 +52,8 @@ public:
SVGAnimatedLength* height() const { return m_height.get(); }
SVGAnimatedString* result() const { return m_result.get(); }
+ virtual void trace(Visitor*) override;
+
protected:
SVGFilterPrimitiveStandardAttributes(const QualifiedName&, Document&);
@@ -68,11 +71,11 @@ private:
virtual RenderObject* createRenderer(RenderStyle*) override final;
virtual bool rendererIsNeeded(const RenderStyle&) override final;
- RefPtr<SVGAnimatedLength> m_x;
- RefPtr<SVGAnimatedLength> m_y;
- RefPtr<SVGAnimatedLength> m_width;
- RefPtr<SVGAnimatedLength> m_height;
- RefPtr<SVGAnimatedString> m_result;
+ RefPtrWillBeMember<SVGAnimatedLength> m_x;
+ RefPtrWillBeMember<SVGAnimatedLength> m_y;
+ RefPtrWillBeMember<SVGAnimatedLength> m_width;
+ RefPtrWillBeMember<SVGAnimatedLength> m_height;
+ RefPtrWillBeMember<SVGAnimatedString> m_result;
};
void invalidateFilterPrimitiveParent(SVGElement*);
« no previous file with comments | « Source/core/svg/SVGFilterElement.cpp ('k') | Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698