| Index: Source/core/page/Frame.cpp
|
| diff --git a/Source/core/page/Frame.cpp b/Source/core/page/Frame.cpp
|
| index 2af8ca0b00076d3ff341f8234488ecd8f6797676..6fe4006d9022af8790b1c5b0f096acceb7dbfc30 100644
|
| --- a/Source/core/page/Frame.cpp
|
| +++ b/Source/core/page/Frame.cpp
|
| @@ -159,7 +159,7 @@ inline Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoader
|
| , m_loader(this, frameLoaderClient)
|
| , m_navigationScheduler(this)
|
| , m_ownerElement(ownerElement)
|
| - , m_script(this)
|
| + , m_script(adoptPtr(new ScriptController(this)))
|
| , m_editor(this)
|
| , m_selection(this)
|
| , m_eventHandler(this)
|
| @@ -290,7 +290,7 @@ void Frame::setDocument(PassRefPtr<Document> newDoc)
|
| m_doc->attach();
|
|
|
| if (m_doc) {
|
| - m_script.updateDocument();
|
| + m_script->updateDocument();
|
| m_doc->updateViewportArguments();
|
| }
|
|
|
|
|