| Index: Source/core/dom/ScriptElement.cpp
|
| diff --git a/Source/core/dom/ScriptElement.cpp b/Source/core/dom/ScriptElement.cpp
|
| index b2c13ae43da8b6111dbca7627fdec7c76871bc73..b9d68d8cb643730459000801117343c37cb9e766 100644
|
| --- a/Source/core/dom/ScriptElement.cpp
|
| +++ b/Source/core/dom/ScriptElement.cpp
|
| @@ -77,10 +77,16 @@ ScriptElement::~ScriptElement()
|
| stopLoadRequest();
|
| }
|
|
|
| +void ScriptElement::prepareScriptCallback(Element* element)
|
| +{
|
| + ASSERT(toScriptElementIfPossible(element));
|
| + toScriptElementIfPossible(element)->prepareScript();
|
| +}
|
| +
|
| void ScriptElement::insertedInto(ContainerNode* insertionPoint)
|
| {
|
| if (insertionPoint->inDocument() && !m_parserInserted)
|
| - prepareScript(); // FIXME: Provide a real starting line number here.
|
| + ContainerNode::queueInsertionCallback(prepareScriptCallback, m_element); // FIXME: Provide a real starting line number here.
|
| }
|
|
|
| void ScriptElement::childrenChanged()
|
|
|