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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedLength.h

Issue 2485663002: Store CSSPropertyID in SVGAnimatedPropertyBase (Closed)
Patch Set: Add missing case Created 4 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 | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimatedPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
index 0d852f0eaca603270ca0cce7ba25f630819c5929..35db4007773a0332ec523df1f7c32fb223710d95 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
@@ -42,10 +42,13 @@ class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength>,
DEFINE_WRAPPERTYPEINFO();
public:
- static SVGAnimatedLength* create(SVGElement* contextElement,
- const QualifiedName& attributeName,
- SVGLength* initialValue) {
- return new SVGAnimatedLength(contextElement, attributeName, initialValue);
+ static SVGAnimatedLength* create(
+ SVGElement* contextElement,
+ const QualifiedName& attributeName,
+ SVGLength* initialValue,
+ CSSPropertyID cssPropertyId = CSSPropertyInvalid) {
+ return new SVGAnimatedLength(contextElement, attributeName, initialValue,
+ cssPropertyId);
}
void setDefaultValueAsString(const String&);
@@ -56,10 +59,12 @@ class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength>,
protected:
SVGAnimatedLength(SVGElement* contextElement,
const QualifiedName& attributeName,
- SVGLength* initialValue)
+ SVGLength* initialValue,
+ CSSPropertyID cssPropertyId = CSSPropertyInvalid)
: SVGAnimatedProperty<SVGLength>(contextElement,
attributeName,
- initialValue) {}
+ initialValue,
+ cssPropertyId) {}
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimatedPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698