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 2150daa5ad712b0bf62ad3ec05ee8e6b308db2f3..75bf580820834c30b184e992b01990334668367b 100644 |
--- a/android_webview/renderer/aw_render_view_ext.cc |
+++ b/android_webview/renderer/aw_render_view_ext.cc |
@@ -6,7 +6,7 @@ |
#include "android_webview/common/render_view_messages.h" |
#include "content/public/renderer/render_frame.h" |
#include "content/public/renderer/render_view.h" |
-#include "third_party/WebKit/public/web/WebFrame.h" |
+#include "third_party/WebKit/public/web/WebLocalFrame.h" |
#include "third_party/WebKit/public/web/WebView.h" |
namespace android_webview { |
@@ -58,7 +58,7 @@ void AwRenderViewExt::CheckContentsSize() { |
gfx::Size contents_size; |
- blink::WebFrame* main_frame = webview->MainFrame(); |
+ blink::WebLocalFrame* main_frame = main_render_frame->GetWebFrame(); |
if (main_frame) |
dcheng
2017/06/25 07:37:48
This conditional seems weird; why would there be n
Łukasz Anforowicz
2017/06/26 16:52:49
Good point - I am trying to do this in https://cod
|
contents_size = main_frame->ContentsSize(); |