From 8d473cf9743f1d30a16a27114e93bd5af5648d23 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 18 May 2012 14:03:11 +0200 Subject: Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578) Weekly snapshot --- Source/WebCore/html/HTMLStyleElement.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Source/WebCore/html/HTMLStyleElement.cpp') 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::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() -- cgit v1.2.1