Index: Source/core/svg/SVGStyleElement.cpp |
diff --git a/Source/core/svg/SVGStyleElement.cpp b/Source/core/svg/SVGStyleElement.cpp |
index d2055507e8084bd670482214e9e421d3862bc488..b984bbadca9d5b28bcda4d615a01a32b04b0e195 100644 |
--- a/Source/core/svg/SVGStyleElement.cpp |
+++ b/Source/core/svg/SVGStyleElement.cpp |
@@ -23,6 +23,7 @@ |
#include "config.h" |
#include "core/svg/SVGStyleElement.h" |
+#include "core/MediaTypeNames.h" |
#include "core/css/CSSStyleSheet.h" |
#include "wtf/StdLibExtras.h" |
@@ -75,9 +76,8 @@ void SVGStyleElement::setType(const AtomicString& type) |
const AtomicString& SVGStyleElement::media() const |
{ |
- DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("all", AtomicString::ConstructFromLiteral)); |
const AtomicString& n = fastGetAttribute(SVGNames::mediaAttr); |
- return n.isNull() ? defaultValue : n; |
+ return n.isNull() ? MediaTypeNames::all : n; |
} |
void SVGStyleElement::setMedia(const AtomicString& media) |