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

Unified Diff: content/renderer/render_view_impl.cc

Issue 12217134: [Android WebView] Implement WebSettings.{get|set}LoadWithOverviewMode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo in comment Created 7 years, 10 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 49a9921f130327751f1d0bde0ee2e1246294d49f..8731ff7b466e94f8bf4bca887eda1f66ddde969f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2365,6 +2365,13 @@ void RenderViewImpl::UpdateTargetURL(const GURL& url,
}
}
+void RenderViewImpl::WebPreferencesUpdated(const WebPreferences& old_prefs) {
jamesr 2013/02/19 23:26:21 I'd rather just do this inline in OnUpdateWebPrefe
mnaganov (inactive) 2013/02/20 10:36:49 This setting resides in WebPreferences because it'
+ if (old_prefs.initialize_at_minimum_page_scale !=
+ webkit_preferences_.initialize_at_minimum_page_scale) {
+ webview()->resetScrollAndScaleState();
+ }
+}
+
gfx::RectF RenderViewImpl::ClientRectToPhysicalWindowRect(
const gfx::RectF& rect) const {
gfx::RectF window_rect = rect;
@@ -5311,8 +5318,10 @@ void RenderViewImpl::OnDragSourceSystemDragEnded() {
}
void RenderViewImpl::OnUpdateWebPreferences(const WebPreferences& prefs) {
+ const WebPreferences old_preferences = webkit_preferences_;
webkit_preferences_ = prefs;
webkit_preferences_.Apply(webview());
+ WebPreferencesUpdated(old_preferences);
}
void RenderViewImpl::OnUpdateTimezone() {

Powered by Google App Engine
This is Rietveld 408576698