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()) |