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

Unified Diff: Source/core/frame/LocalFrame.h

Issue 627933002: Oilpan: move ScriptController+WindowProxy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Smaller fixes Created 6 years, 2 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/bindings/core/v8/WindowProxy.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalFrame.h
diff --git a/Source/core/frame/LocalFrame.h b/Source/core/frame/LocalFrame.h
index 46e38899fc12273a06901b872e892e86aab6a133..5036a38977f68a93c7f365d8ccabf972e4135510 100644
--- a/Source/core/frame/LocalFrame.h
+++ b/Source/core/frame/LocalFrame.h
@@ -104,7 +104,7 @@ namespace blink {
FrameSelection& selection() const;
InputMethodController& inputMethodController() const;
FetchContext& fetchContext() const { return loader().fetchContext(); }
- ScriptController& script();
+ ScriptController& script() const;
SpellChecker& spellChecker() const;
FrameConsole& console() const;
@@ -173,7 +173,7 @@ namespace blink {
// Usually 0. Non-null if this is the top frame of PagePopup.
RefPtrWillBeMember<Element> m_pagePopupOwner;
- OwnPtr<ScriptController> m_script;
+ const OwnPtrWillBeMember<ScriptController> m_script;
const OwnPtrWillBeMember<Editor> m_editor;
const OwnPtrWillBeMember<SpellChecker> m_spellChecker;
const OwnPtrWillBeMember<FrameSelection> m_selection;
@@ -207,7 +207,7 @@ namespace blink {
return m_view.get();
}
- inline ScriptController& LocalFrame::script()
+ inline ScriptController& LocalFrame::script() const
{
return *m_script;
}
« no previous file with comments | « Source/bindings/core/v8/WindowProxy.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698