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

Unified Diff: Source/core/svg/SVGStyleElement.cpp

Issue 18060005: Let SVGElement handle SVGLangSpace attributes parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/SVGPatternElement.cpp ('k') | Source/core/svg/SVGSymbolElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStyleElement.cpp
diff --git a/Source/core/svg/SVGStyleElement.cpp b/Source/core/svg/SVGStyleElement.cpp
index 4d87e87ee4c9c71fa77833ba696588d2a48295d0..2a704a43f27e0ee27b6e7f3cb642d964134485ba 100644
--- a/Source/core/svg/SVGStyleElement.cpp
+++ b/Source/core/svg/SVGStyleElement.cpp
@@ -100,10 +100,8 @@ void SVGStyleElement::setTitle(const AtomicString& title)
bool SVGStyleElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
- if (supportedAttributes.isEmpty()) {
- SVGLangSpace::addSupportedAttributes(supportedAttributes);
+ if (supportedAttributes.isEmpty())
supportedAttributes.add(SVGNames::titleAttr);
- }
return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
}
@@ -120,9 +118,6 @@ void SVGStyleElement::parseAttribute(const QualifiedName& name, const AtomicStri
return;
}
- if (SVGLangSpace::parseAttribute(name, value))
- return;
-
ASSERT_NOT_REACHED();
}
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | Source/core/svg/SVGSymbolElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698