| 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 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 prefs.image_color_profiles_enabled); | 1029 prefs.image_color_profiles_enabled); |
| 1030 settings->setShouldRespectImageOrientation( | 1030 settings->setShouldRespectImageOrientation( |
| 1031 prefs.should_respect_image_orientation); | 1031 prefs.should_respect_image_orientation); |
| 1032 | 1032 |
| 1033 settings->setUnsafePluginPastingEnabled(false); | 1033 settings->setUnsafePluginPastingEnabled(false); |
| 1034 settings->setEditingBehavior( | 1034 settings->setEditingBehavior( |
| 1035 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 1035 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
| 1036 | 1036 |
| 1037 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 1037 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
| 1038 | 1038 |
| 1039 // TODO(bokan): Remove once Blink side is gone. | |
| 1040 settings->setInvertViewportScrollOrder(true); | |
| 1041 | |
| 1042 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); | 1039 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); |
| 1043 | 1040 |
| 1044 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); | 1041 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); |
| 1045 | 1042 |
| 1046 settings->setSelectionIncludesAltImageText(true); | 1043 settings->setSelectionIncludesAltImageText(true); |
| 1047 | 1044 |
| 1048 settings->setV8CacheOptions( | 1045 settings->setV8CacheOptions( |
| 1049 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); | 1046 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); |
| 1050 | 1047 |
| 1051 settings->setImageAnimationPolicy( | 1048 settings->setImageAnimationPolicy( |
| (...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3727 if (IsUseZoomForDSFEnabled()) { | 3724 if (IsUseZoomForDSFEnabled()) { |
| 3728 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3725 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
| 3729 } else { | 3726 } else { |
| 3730 webview()->setDeviceScaleFactor(device_scale_factor_); | 3727 webview()->setDeviceScaleFactor(device_scale_factor_); |
| 3731 } | 3728 } |
| 3732 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3729 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
| 3733 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3730 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
| 3734 } | 3731 } |
| 3735 | 3732 |
| 3736 } // namespace content | 3733 } // namespace content |
| OLD | NEW |