Chromium Code Reviews| 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() { |