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

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

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug print Created 6 years, 11 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
« no previous file with comments | « Source/core/svg/SVGCursorElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.h
diff --git a/Source/core/svg/SVGElement.h b/Source/core/svg/SVGElement.h
index 7064ccb3f6ea93de76916b1ec0e3a42d14fbb780..a3617ac43c928eb1e019823f8ab04752832e1b5b 100644
--- a/Source/core/svg/SVGElement.h
+++ b/Source/core/svg/SVGElement.h
@@ -150,8 +150,12 @@ public:
bool isContextElement() const { return m_isContextElement; }
void setContextElement() { m_isContextElement = true; }
+ void addToPropertyMap(PassRefPtr<NewSVGAnimatedPropertyBase>);
+
virtual bool childShouldCreateRenderer(const Node& child) const { return true; }
+ SVGAnimatedString* className() { return m_className.get(); }
+
protected:
SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElement);
@@ -205,8 +209,6 @@ protected:
SVGElement* m_owner;
};
- void addToPropertyMap(PassRefPtr<NewSVGAnimatedPropertyBase>);
-
private:
friend class SVGElementInstance;
@@ -231,8 +233,8 @@ private:
typedef HashMap<QualifiedName, RefPtr<NewSVGAnimatedPropertyBase> > AttributeToPropertyMap;
AttributeToPropertyMap m_newAttributeToPropertyMap;
+ RefPtr<SVGAnimatedString> m_className;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGElement)
- DECLARE_ANIMATED_STRING(ClassName, className)
END_DECLARE_ANIMATED_PROPERTIES
#if !ASSERT_DISABLED
« no previous file with comments | « Source/core/svg/SVGCursorElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698