summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLStyleElement.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-07-08 12:51:48 +0100
committerSteve Block <steveblock@google.com>2010-07-09 15:33:40 +0100
commitca9cb53ed1119a3fd98fafa0972ffeb56dee1c24 (patch)
treebb45155550ec013adc0ad10f4d7d354c6469b022 /WebCore/html/HTMLStyleElement.cpp
parentd4b24d9a829ed7de70381c8b99fb75a07ab40466 (diff)
downloadexternal_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.zip
external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.gz
external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.bz2
Merge WebKit at r62496: Initial merge by git
Change-Id: Ie3da0770eca22a70a632e3571f31cfabc80facb2
Diffstat (limited to 'WebCore/html/HTMLStyleElement.cpp')
-rw-r--r--WebCore/html/HTMLStyleElement.cpp30
1 files changed, 5 insertions, 25 deletions
diff --git a/WebCore/html/HTMLStyleElement.cpp b/WebCore/html/HTMLStyleElement.cpp
index a8ea42e..79bafe6 100644
--- a/WebCore/html/HTMLStyleElement.cpp
+++ b/WebCore/html/HTMLStyleElement.cpp
@@ -27,6 +27,7 @@
#include "Attribute.h"
#include "Document.h"
#include "HTMLNames.h"
+#include "ScriptEventListener.h"
namespace WebCore {
@@ -45,14 +46,13 @@ PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagNa
return adoptRef(new HTMLStyleElement(tagName, document, createdByParser));
}
-// other stuff...
void HTMLStyleElement::parseMappedAttribute(Attribute* attr)
{
- if (attr->name() == mediaAttr)
- m_media = attr->value().string().lower();
- else if (attr->name() == titleAttr && m_sheet)
+ if (attr->name() == titleAttr && m_sheet)
m_sheet->setTitle(attr->value());
- else
+ else if (attr->name() == onbeforeprocessAttr)
+ setAttributeEventListener(eventNames().beforeprocessEvent, createAttributeEventListener(this, attr));
+ else
HTMLElement::parseMappedAttribute(attr);
}
@@ -110,36 +110,16 @@ bool HTMLStyleElement::sheetLoaded()
return false;
}
-bool HTMLStyleElement::disabled() const
-{
- return !getAttribute(disabledAttr).isNull();
-}
-
-void HTMLStyleElement::setDisabled(bool disabled)
-{
- setAttribute(disabledAttr, disabled ? "" : 0);
-}
-
const AtomicString& HTMLStyleElement::media() const
{
return getAttribute(mediaAttr);
}
-void HTMLStyleElement::setMedia(const AtomicString &value)
-{
- setAttribute(mediaAttr, value);
-}
-
const AtomicString& HTMLStyleElement::type() const
{
return getAttribute(typeAttr);
}
-void HTMLStyleElement::setType(const AtomicString &value)
-{
- setAttribute(typeAttr, value);
-}
-
void HTMLStyleElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
{
HTMLElement::addSubresourceAttributeURLs(urls);