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

Unified Diff: third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp

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
Index: third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
diff --git a/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp b/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
index 95ebbe8e45ff3c0ab8a766ab40ab64a152ccf80f..bd62abba00cd06bf92f66b9a90a9a58ab5f0ecf2 100644
--- a/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
+++ b/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
@@ -37,13 +37,17 @@ namespace blink {
SVGAnimatedPropertyBase::SVGAnimatedPropertyBase(
AnimatedPropertyType type,
SVGElement* contextElement,
- const QualifiedName& attributeName)
+ const QualifiedName& attributeName,
+ CSSPropertyID cssPropertyId)
: m_type(type),
+ m_cssPropertyId(cssPropertyId),
m_isReadOnly(false),
m_contextElement(contextElement),
m_attributeName(attributeName) {
- ASSERT(m_contextElement);
- ASSERT(m_attributeName != QualifiedName::null());
+ DCHECK(m_contextElement);
+ DCHECK(m_attributeName != QualifiedName::null());
+ DCHECK_EQ(this->type(), type);
+ DCHECK_EQ(this->cssPropertyId(), cssPropertyId);
}
SVGAnimatedPropertyBase::~SVGAnimatedPropertyBase() {}

Powered by Google App Engine
This is Rietveld 408576698