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

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

Issue 33523002: Have Frame::script() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Frame.h
diff --git a/Source/core/frame/Frame.h b/Source/core/frame/Frame.h
index 975b1171ae3f89576ec7ee8f65ae135753cd97c8..05eb05630b1cc0e4f18c1ddb9b998afcb1a41deb 100644
--- a/Source/core/frame/Frame.h
+++ b/Source/core/frame/Frame.h
@@ -104,7 +104,7 @@ namespace WebCore {
AnimationController& animation() const;
InputMethodController& inputMethodController() const;
FetchContext& fetchContext() const { return loader()->fetchContext(); }
- ScriptController* script();
+ ScriptController& script();
SpellChecker& spellChecker() const;
RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame.
@@ -217,9 +217,9 @@ namespace WebCore {
return m_view.get();
}
- inline ScriptController* Frame::script()
+ inline ScriptController& Frame::script()
{
- return m_script.get();
+ return *m_script;
}
inline DOMWindow* Frame::domWindow() const
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698