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

Unified Diff: Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 23483024: Assume FrameView::m_frame is never NULL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/FrameView.cpp ('k') | Source/core/plugins/IFrameShimSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
index ca740b97dba7be8b11eebb19597e7e2fe2557c6f..5a05988ff8b2e3a5ea30d28366f6cd2ff68b07b7 100644
--- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -711,11 +711,7 @@ bool ScrollingCoordinator::isForMainFrame(ScrollableArea* scrollableArea) const
GraphicsLayer* ScrollingCoordinator::scrollLayerForFrameView(FrameView* frameView)
{
- Frame* frame = frameView->frame();
- if (!frame)
- return 0;
-
- RenderView* renderView = frame->contentRenderer();
+ RenderView* renderView = frameView->frame()->contentRenderer();
if (!renderView)
return 0;
return renderView->compositor()->scrollLayer();
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/plugins/IFrameShimSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698