summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGStyleElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGStyleElement.cpp')
-rw-r--r--WebCore/svg/SVGStyleElement.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/WebCore/svg/SVGStyleElement.cpp b/WebCore/svg/SVGStyleElement.cpp
index 2612de0..2f59680 100644
--- a/WebCore/svg/SVGStyleElement.cpp
+++ b/WebCore/svg/SVGStyleElement.cpp
@@ -30,14 +30,15 @@
#include "ExceptionCode.h"
#include "HTMLNames.h"
#include "XMLNames.h"
+#include <wtf/StdLibExtras.h>
namespace WebCore {
using namespace HTMLNames;
-SVGStyleElement::SVGStyleElement(const QualifiedName& tagName, Document* doc)
+SVGStyleElement::SVGStyleElement(const QualifiedName& tagName, Document* doc, bool createdByParser)
: SVGElement(tagName, doc)
- , m_createdByParser(false)
+ , m_createdByParser(createdByParser)
{
}
@@ -53,7 +54,7 @@ void SVGStyleElement::setXmlspace(const AtomicString&, ExceptionCode& ec)
const AtomicString& SVGStyleElement::type() const
{
- static const AtomicString defaultValue("text/css");
+ DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css"));
const AtomicString& n = getAttribute(typeAttr);
return n.isNull() ? defaultValue : n;
}
@@ -65,7 +66,7 @@ void SVGStyleElement::setType(const AtomicString&, ExceptionCode& ec)
const AtomicString& SVGStyleElement::media() const
{
- static const AtomicString defaultValue("all");
+ DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("all"));
const AtomicString& n = getAttribute(mediaAttr);
return n.isNull() ? defaultValue : n;
}