diff options
Diffstat (limited to 'Source/WebCore/html/HTMLStyleElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLStyleElement.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/WebCore/html/HTMLStyleElement.cpp b/Source/WebCore/html/HTMLStyleElement.cpp index 7c2512b..0f256e1 100644 --- a/Source/WebCore/html/HTMLStyleElement.cpp +++ b/Source/WebCore/html/HTMLStyleElement.cpp @@ -27,8 +27,9 @@ #include "Attribute.h" #include "Document.h" #include "HTMLNames.h" -#include "ScriptableDocumentParser.h" #include "ScriptEventListener.h" +#include "ScriptableDocumentParser.h" + namespace WebCore { @@ -104,4 +105,19 @@ void HTMLStyleElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) cons styleSheet->addSubresourceStyleURLs(urls); } +bool HTMLStyleElement::disabled() const +{ + StyleSheet* styleSheet = sheet(); + if (!styleSheet) + return false; + + return styleSheet->disabled(); +} + +void HTMLStyleElement::setDisabled(bool setDisabled) +{ + if (StyleSheet* styleSheet = sheet()) + styleSheet->setDisabled(setDisabled); +} + } |