summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLScriptElement.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-05 14:36:32 +0100
committerBen Murdoch <benm@google.com>2011-05-10 15:38:30 +0100
commitf05b935882198ccf7d81675736e3aeb089c5113a (patch)
tree4ea0ca838d9ef1b15cf17ddb3928efb427c7e5a1 /WebCore/html/HTMLScriptElement.cpp
parent60fbdcc62bced8db2cb1fd233cc4d1e4ea17db1b (diff)
downloadexternal_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.zip
external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.gz
external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.bz2
Merge WebKit at r74534: Initial merge by git.
Change-Id: I6ccd1154fa1b19c2ec2a66878eb675738735f1eb
Diffstat (limited to 'WebCore/html/HTMLScriptElement.cpp')
-rw-r--r--WebCore/html/HTMLScriptElement.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/html/HTMLScriptElement.cpp b/WebCore/html/HTMLScriptElement.cpp
index 0ee93df..603b2a8 100644
--- a/WebCore/html/HTMLScriptElement.cpp
+++ b/WebCore/html/HTMLScriptElement.cpp
@@ -35,16 +35,16 @@ namespace WebCore {
using namespace HTMLNames;
-inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document* document, bool createdByParser, bool isEvaluated)
+inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document* document, bool wasInsertedByParser, bool wasAlreadyStarted)
: HTMLElement(tagName, document)
- , ScriptElement(this, createdByParser, isEvaluated)
+ , ScriptElement(this, wasInsertedByParser, wasAlreadyStarted)
{
ASSERT(hasTagName(scriptTag));
}
-PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(const QualifiedName& tagName, Document* document, bool createdByParser)
+PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(const QualifiedName& tagName, Document* document, bool wasInsertedByParser)
{
- return adoptRef(new HTMLScriptElement(tagName, document, createdByParser, false));
+ return adoptRef(new HTMLScriptElement(tagName, document, wasInsertedByParser, false));
}
bool HTMLScriptElement::isURLAttribute(Attribute* attr) const
@@ -152,12 +152,12 @@ String HTMLScriptElement::eventAttributeValue() const
bool HTMLScriptElement::asyncAttributeValue() const
{
- return !getAttribute(asyncAttr).isNull();
+ return fastHasAttribute(asyncAttr);
}
bool HTMLScriptElement::deferAttributeValue() const
{
- return !getAttribute(deferAttr).isNull();
+ return fastHasAttribute(deferAttr);
}
void HTMLScriptElement::dispatchLoadEvent()
@@ -175,7 +175,7 @@ void HTMLScriptElement::dispatchErrorEvent()
PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren() const
{
- return adoptRef(new HTMLScriptElement(tagQName(), document(), false, isEvaluated()));
+ return adoptRef(new HTMLScriptElement(tagQName(), document(), false, wasAlreadyStarted()));
}
}