| 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;
|
| }
|
|
|