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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 1203693003: Setting Accurate ScrollResult from Blink for Elastic Scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed piman review comments Created 5 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
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 329a10c795161f273e8616ed0e89cf4ec4668c44..a366089fdca59a5d589d0645e1fc4d95edfc0bd5 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -50,9 +50,10 @@ WebViewPlugin::WebViewPlugin(WebViewPlugin::Delegate* delegate,
web_view_(WebView::create(this)),
finished_loading_(false),
focused_(false) {
- // ApplyWebPreferences before making a WebLocalFrame so that the frame sees a
- // consistent view of our preferences.
- content::RenderView::ApplyWebPreferences(preferences, web_view_);
+ // ApplyWebPreferencesInternal before making a WebLocalFrame so that the frame
+ // sees a consistent view of our preferences.
+ content::RenderView::ApplyWebPreferencesInternal(preferences, web_view_,
+ NULL);
web_frame_ = WebLocalFrame::create(blink::WebTreeScopeType::Document, this);
web_view_->setMainFrame(web_frame_);
}
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | content/public/renderer/render_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698