Index: android_webview/renderer/aw_render_view_ext.cc |
diff --git a/android_webview/renderer/aw_render_view_ext.cc b/android_webview/renderer/aw_render_view_ext.cc |
index 75bf580820834c30b184e992b01990334668367b..add2084d80326c4c289c88a49f385f6760e71a6a 100644 |
--- a/android_webview/renderer/aw_render_view_ext.cc |
+++ b/android_webview/renderer/aw_render_view_ext.cc |
@@ -56,11 +56,7 @@ void AwRenderViewExt::CheckContentsSize() { |
if (!webview || !main_render_frame) |
return; |
- gfx::Size contents_size; |
- |
- blink::WebLocalFrame* main_frame = main_render_frame->GetWebFrame(); |
- if (main_frame) |
- contents_size = main_frame->ContentsSize(); |
+ gfx::Size contents_size = main_render_frame->GetWebFrame()->ContentsSize(); |
// Fall back to contentsPreferredMinimumSize if the mainFrame is reporting a |
// 0x0 size (this happens during initial load). |