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

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

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/EventSource.cpp ('k') | Source/core/page/Frame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Frame.h
diff --git a/Source/core/page/Frame.h b/Source/core/page/Frame.h
index 9e9f0c856642b589e5f499569a48513e6bdb8b04..04fc71751d7cacfa534d1cd76a92800471ddd55e 100644
--- a/Source/core/page/Frame.h
+++ b/Source/core/page/Frame.h
@@ -37,7 +37,6 @@
#include "FrameSelection.h"
#include "FrameTree.h"
#include "NavigationScheduler.h"
-#include "ScriptController.h"
namespace WebCore {
@@ -47,8 +46,8 @@ namespace WebCore {
class HTMLTableCellElement;
class RegularExpression;
class RenderPart;
-
class TreeScope;
+ class ScriptController;
enum {
LayerTreeFlagsIncludeDebugInfo = 1 << 0,
@@ -178,7 +177,7 @@ namespace WebCore {
RefPtr<FrameView> m_view;
RefPtr<Document> m_doc;
- ScriptController m_script;
+ OwnPtr<ScriptController> m_script;
mutable Editor m_editor;
mutable FrameSelection m_selection;
@@ -217,7 +216,7 @@ namespace WebCore {
inline ScriptController* Frame::script()
{
- return &m_script;
+ return m_script.get();
}
inline Document* Frame::document() const
« no previous file with comments | « Source/core/page/EventSource.cpp ('k') | Source/core/page/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698