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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 1435233002: Remove invert viewport scroll order setting from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix after rebase Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/html_viewer/blink_settings_impl.cc ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698