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

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

Issue 564133003: Make better use of MediaTypeNames (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more Created 6 years, 3 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/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)

Powered by Google App Engine
This is Rietveld 408576698