| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 prefs.image_color_profiles_enabled); | 1047 prefs.image_color_profiles_enabled); |
| 1048 settings->setShouldRespectImageOrientation( | 1048 settings->setShouldRespectImageOrientation( |
| 1049 prefs.should_respect_image_orientation); | 1049 prefs.should_respect_image_orientation); |
| 1050 | 1050 |
| 1051 settings->setUnsafePluginPastingEnabled(false); | 1051 settings->setUnsafePluginPastingEnabled(false); |
| 1052 settings->setEditingBehavior( | 1052 settings->setEditingBehavior( |
| 1053 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 1053 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 1054 | 1054 |
| 1055 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 1055 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| 1056 | 1056 |
| 1057 settings->setInertVisualViewport(prefs.inert_visual_viewport); |
| 1058 |
| 1057 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); | 1059 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); |
| 1058 | 1060 |
| 1059 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); | 1061 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); |
| 1060 | 1062 |
| 1061 settings->setSelectionIncludesAltImageText(true); | 1063 settings->setSelectionIncludesAltImageText(true); |
| 1062 | 1064 |
| 1063 settings->setV8CacheOptions( | 1065 settings->setV8CacheOptions( |
| 1064 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); | 1066 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); |
| 1065 | 1067 |
| 1066 settings->setImageAnimationPolicy( | 1068 settings->setImageAnimationPolicy( |
| (...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3542 if (IsUseZoomForDSFEnabled()) { | 3544 if (IsUseZoomForDSFEnabled()) { |
| 3543 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3545 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
| 3544 } else { | 3546 } else { |
| 3545 webview()->setDeviceScaleFactor(device_scale_factor_); | 3547 webview()->setDeviceScaleFactor(device_scale_factor_); |
| 3546 } | 3548 } |
| 3547 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3549 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
| 3548 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3550 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
| 3549 } | 3551 } |
| 3550 | 3552 |
| 3551 } // namespace content | 3553 } // namespace content |
| OLD | NEW |