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

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

Issue 1914963002: Introduce v8-cache-strategies-for-cache-storage setting flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #include <memory> 9 #include <memory>
10 10
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 1029
1030 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); 1030 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled);
1031 1031
1032 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); 1032 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled);
1033 1033
1034 settings->setSelectionIncludesAltImageText(true); 1034 settings->setSelectionIncludesAltImageText(true);
1035 1035
1036 settings->setV8CacheOptions( 1036 settings->setV8CacheOptions(
1037 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); 1037 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options));
1038 1038
1039 settings->setV8CacheStrategiesForCacheStorage(
1040 static_cast<WebSettings::V8CacheStrategiesForCacheStorage>(
1041 prefs.v8_cache_strategies_for_cache_storage));
1042
1039 settings->setImageAnimationPolicy( 1043 settings->setImageAnimationPolicy(
1040 static_cast<WebSettings::ImageAnimationPolicy>(prefs.animation_policy)); 1044 static_cast<WebSettings::ImageAnimationPolicy>(prefs.animation_policy));
1041 1045
1042 settings->setPresentationRequiresUserGesture( 1046 settings->setPresentationRequiresUserGesture(
1043 prefs.user_gesture_required_for_presentation); 1047 prefs.user_gesture_required_for_presentation);
1044 1048
1045 settings->setTextTrackMarginPercentage(prefs.text_track_margin_percentage); 1049 settings->setTextTrackMarginPercentage(prefs.text_track_margin_percentage);
1046 1050
1047 // Needs to happen before setIgnoreVIewportTagScaleLimits below. 1051 // Needs to happen before setIgnoreVIewportTagScaleLimits below.
1048 web_view->setDefaultPageScaleLimits( 1052 web_view->setDefaultPageScaleLimits(
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
3300 if (IsUseZoomForDSFEnabled()) { 3304 if (IsUseZoomForDSFEnabled()) {
3301 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); 3305 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
3302 } else { 3306 } else {
3303 webview()->setDeviceScaleFactor(device_scale_factor_); 3307 webview()->setDeviceScaleFactor(device_scale_factor_);
3304 } 3308 }
3305 webview()->settings()->setPreferCompositingToLCDTextEnabled( 3309 webview()->settings()->setPreferCompositingToLCDTextEnabled(
3306 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 3310 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
3307 } 3311 }
3308 3312
3309 } // namespace content 3313 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698