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

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

Issue 326823003: Remove lazy layout preference plumbing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/public/renderer/web_preferences.h" 5 #include "content/public/renderer/web_preferences.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/renderer/net_info_helper.h" 8 #include "content/renderer/net_info_helper.h"
9 #include "third_party/WebKit/public/platform/WebConnectionType.h" 9 #include "third_party/WebKit/public/platform/WebConnectionType.h"
10 #include "third_party/WebKit/public/platform/WebString.h" 10 #include "third_party/WebKit/public/platform/WebString.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 settings->setAllowRunningOfInsecureContent( 251 settings->setAllowRunningOfInsecureContent(
252 prefs.allow_running_insecure_content); 252 prefs.allow_running_insecure_content);
253 settings->setPasswordEchoEnabled(prefs.password_echo_enabled); 253 settings->setPasswordEchoEnabled(prefs.password_echo_enabled);
254 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds); 254 settings->setShouldPrintBackgrounds(prefs.should_print_backgrounds);
255 settings->setShouldClearDocumentBackground( 255 settings->setShouldClearDocumentBackground(
256 prefs.should_clear_document_background); 256 prefs.should_clear_document_background);
257 settings->setEnableScrollAnimator(prefs.enable_scroll_animator); 257 settings->setEnableScrollAnimator(prefs.enable_scroll_animator);
258 258
259 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); 259 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled);
260 260
261 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled);
262 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); 261 WebRuntimeFeatures::enableTouch(prefs.touch_enabled);
263 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); 262 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points);
264 settings->setDeviceSupportsTouch(prefs.device_supports_touch); 263 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
265 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); 264 settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
266 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 265 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
267 266
268 settings->setDeferredImageDecodingEnabled( 267 settings->setDeferredImageDecodingEnabled(
269 prefs.deferred_image_decoding_enabled); 268 prefs.deferred_image_decoding_enabled);
270 settings->setShouldRespectImageOrientation( 269 settings->setShouldRespectImageOrientation(
271 prefs.should_respect_image_orientation); 270 prefs.should_respect_image_orientation);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 settings->setPinchVirtualViewportEnabled( 331 settings->setPinchVirtualViewportEnabled(
333 prefs.pinch_virtual_viewport_enabled); 332 prefs.pinch_virtual_viewport_enabled);
334 333
335 settings->setPinchOverlayScrollbarThickness( 334 settings->setPinchOverlayScrollbarThickness(
336 prefs.pinch_overlay_scrollbar_thickness); 335 prefs.pinch_overlay_scrollbar_thickness);
337 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); 336 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
338 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); 337 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing);
339 } 338 }
340 339
341 } // namespace content 340 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | webkit/common/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698