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

Unified Diff: android_webview/renderer/aw_render_view_ext.cc

Issue 2960663002: Remove unnecessary check if RenderFrame::GetWebFrame() returns null. (Closed)
Patch Set: Rebasing... Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698