diff options
Diffstat (limited to 'Source/WebCore/html/HTMLScriptElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLScriptElement.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebCore/html/HTMLScriptElement.cpp b/Source/WebCore/html/HTMLScriptElement.cpp index 1df19a63b..cabc21374 100644 --- a/Source/WebCore/html/HTMLScriptElement.cpp +++ b/Source/WebCore/html/HTMLScriptElement.cpp @@ -58,19 +58,14 @@ void HTMLScriptElement::childrenChanged(bool changedByParser, Node* beforeChange HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); } -void HTMLScriptElement::attributeChanged(Attribute* attr) -{ - if (attr->name() == asyncAttr) - handleAsyncAttribute(); - HTMLElement::attributeChanged(attr); -} - void HTMLScriptElement::parseAttribute(Attribute* attr) { const QualifiedName& attrName = attr->name(); if (attrName == srcAttr) handleSourceAttribute(attr->value()); + else if (attr->name() == asyncAttr) + handleAsyncAttribute(); else if (attrName == onloadAttr) setAttributeEventListener(eventNames().loadEvent, createAttributeEventListener(this, attr)); else if (attrName == onbeforeloadAttr) @@ -91,7 +86,7 @@ void HTMLScriptElement::setText(const String &value) int numChildren = childNodeCount(); if (numChildren == 1 && firstChild()->isTextNode()) { - static_cast<Text*>(firstChild())->setData(value, ec); + toText(firstChild())->setData(value, ec); return; } |