Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: Source/core/page/Frame.cpp

Issue 14323004: Make Frame's ScriptController an OwnPtr and remove the #include (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/Frame.h ('k') | Source/core/page/Navigator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « Source/core/page/Frame.h ('k') | Source/core/page/Navigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698