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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.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/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index db5921d7b030d58460d78559eb56e462338662b0..846f72c07ff5910c8414f80f4d3dac13153c2cc8 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -744,9 +744,17 @@ bool SVGElement::isAnimatableCSSProperty(const QualifiedName& attrName) {
}
bool SVGElement::isPresentationAttribute(const QualifiedName& name) const {
+ if (const SVGAnimatedPropertyBase* property = propertyFromAttribute(name))
+ return property->hasPresentationAttributeMapping();
return cssPropertyIdForSVGAttributeName(name) > 0;
}
+bool SVGElement::isPresentationAttributeWithSVGDOM(
+ const QualifiedName& name) const {
+ const SVGAnimatedPropertyBase* property = propertyFromAttribute(name);
+ return property && property->hasPresentationAttributeMapping();
+}
+
void SVGElement::collectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | third_party/WebKit/Source/core/svg/SVGEllipseElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698