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

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

Issue 203193008: Make supportsMarkers non virtual (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compile error Created 6 years, 9 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
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index ca015d3ee51e2cd407a6d61be7d794ee9b1140b7..4f78570c5ce4dab09b5e970d24a904d965ffaf84 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -260,6 +260,19 @@ String SVGElement::title() const
return String();
}
+bool SVGElement::supportsMarkers() const
+{
+ DEFINE_STATIC_LOCAL(HashSet<AtomicString>, s_tagList, ());
+ if (s_tagList.isEmpty()) {
+ s_tagList.add(SVGNames::lineTag.localName());
+ s_tagList.add(SVGNames::pathTag.localName());
+ s_tagList.add(SVGNames::polygonTag.localName());
+ s_tagList.add(SVGNames::polylineTag.localName());
+ }
+
+ return s_tagList.contains(localName());
f(malita) 2014/03/19 14:58:55 We're replacing a virtual call with a hashset look
+}
+
PassRefPtrWillBeRawPtr<CSSValue> SVGElement::getPresentationAttribute(const AtomicString& name)
{
if (!hasAttributesWithoutUpdate())

Powered by Google App Engine
This is Rietveld 408576698