diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-09 14:16:12 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-09 14:16:12 +0100 |
commit | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (patch) | |
tree | 52599cd0ab782b1768e23ad176f7618f98333cb6 /Source/WebCore/svg/SVGStyleElement.cpp | |
parent | cd44dc59cdfc39534aef4d417e9f3c412e3be139 (diff) | |
download | qtwebkit-03e12282df9aa1e1fb05a8b90f1cfc2e08764cec.tar.gz |
Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223)
Diffstat (limited to 'Source/WebCore/svg/SVGStyleElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGStyleElement.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/WebCore/svg/SVGStyleElement.cpp b/Source/WebCore/svg/SVGStyleElement.cpp index cec037822..e32e93225 100644 --- a/Source/WebCore/svg/SVGStyleElement.cpp +++ b/Source/WebCore/svg/SVGStyleElement.cpp @@ -51,6 +51,20 @@ PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName return adoptRef(new SVGStyleElement(tagName, document, createdByParser)); } +bool SVGStyleElement::disabled() const +{ + if (!m_sheet) + return false; + + return m_sheet->disabled(); +} + +void SVGStyleElement::setDisabled(bool setDisabled) +{ + if (CSSStyleSheet* styleSheet = sheet()) + styleSheet->setDisabled(setDisabled); +} + const AtomicString& SVGStyleElement::type() const { DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css")); @@ -95,10 +109,10 @@ bool SVGStyleElement::isSupportedAttribute(const QualifiedName& attrName) return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName); } -void SVGStyleElement::parseMappedAttribute(Attribute* attr) +void SVGStyleElement::parseAttribute(Attribute* attr) { if (!isSupportedAttribute(attr->name())) { - SVGElement::parseMappedAttribute(attr); + SVGElement::parseAttribute(attr); return; } @@ -108,7 +122,7 @@ void SVGStyleElement::parseMappedAttribute(Attribute* attr) return; } - if (SVGLangSpace::parseMappedAttribute(attr)) + if (SVGLangSpace::parseAttribute(attr)) return; ASSERT_NOT_REACHED(); |