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

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

Issue 593583002: Assert that frame() derefs a non-null pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/FrameView.h ('k') | Source/core/testing/DummyPageHolder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/RemoteFrameView.h
diff --git a/Source/core/frame/RemoteFrameView.h b/Source/core/frame/RemoteFrameView.h
index b6b29050b887361a31f2e7ed305637eb037d28b9..ecce68ad11f96c4dce692c9b5cf37d8396051de6 100644
--- a/Source/core/frame/RemoteFrameView.h
+++ b/Source/core/frame/RemoteFrameView.h
@@ -21,7 +21,11 @@ public:
virtual bool isRemoteFrameView() const OVERRIDE { return true; }
- RemoteFrame& frame() const { return *m_remoteFrame; }
+ RemoteFrame& frame() const
+ {
+ ASSERT(m_remoteFrame);
+ return *m_remoteFrame;
+ }
// Override to notify remote frame that its viewport size has changed.
virtual void frameRectsChanged() OVERRIDE;
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/testing/DummyPageHolder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698