diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
commit | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch) | |
tree | cdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebCore/html/HTMLStyleElement.cpp | |
parent | 1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff) | |
download | qtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz |
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
Diffstat (limited to 'Source/WebCore/html/HTMLStyleElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLStyleElement.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/WebCore/html/HTMLStyleElement.cpp b/Source/WebCore/html/HTMLStyleElement.cpp index d1afa1b90..195fd50c4 100644 --- a/Source/WebCore/html/HTMLStyleElement.cpp +++ b/Source/WebCore/html/HTMLStyleElement.cpp @@ -70,24 +70,24 @@ PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagNa return adoptRef(new HTMLStyleElement(tagName, document, createdByParser)); } -void HTMLStyleElement::parseAttribute(Attribute* attr) +void HTMLStyleElement::parseAttribute(const Attribute& attribute) { - if (attr->name() == titleAttr && m_sheet) - m_sheet->setTitle(attr->value()); - else if (attr->name() == onloadAttr) - setAttributeEventListener(eventNames().loadEvent, createAttributeEventListener(this, attr)); - else if (attr->name() == onerrorAttr) - setAttributeEventListener(eventNames().errorEvent, createAttributeEventListener(this, attr)); + if (attribute.name() == titleAttr && m_sheet) + m_sheet->setTitle(attribute.value()); + else if (attribute.name() == onloadAttr) + setAttributeEventListener(eventNames().loadEvent, createAttributeEventListener(this, attribute)); + else if (attribute.name() == onerrorAttr) + setAttributeEventListener(eventNames().errorEvent, createAttributeEventListener(this, attribute)); #if ENABLE(STYLE_SCOPED) - else if (attr->name() == scopedAttr) { - if (!attr->isNull() && !m_isRegisteredWithScopingNode && inDocument()) + else if (attribute.name() == scopedAttr) { + if (!attribute.isNull() && !m_isRegisteredWithScopingNode && inDocument()) registerWithScopingNode(); - else if (attr->isNull() && m_isRegisteredWithScopingNode) + else if (attribute.isNull() && m_isRegisteredWithScopingNode) unregisterWithScopingNode(); } #endif else - HTMLElement::parseAttribute(attr); + HTMLElement::parseAttribute(attribute); } void HTMLStyleElement::finishParsingChildren() |