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

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

Issue 289973008: Remove Chromium plumbing for fixed-position-creates-stacking-context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/content_switches.cc ('k') | content/shell/common/webkit_test_helpers.cc » ('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 "third_party/WebKit/public/platform/WebString.h" 8 #include "third_party/WebKit/public/platform/WebString.h"
9 #include "third_party/WebKit/public/platform/WebURL.h" 9 #include "third_party/WebKit/public/platform/WebURL.h"
10 #include "third_party/WebKit/public/web/WebKit.h" 10 #include "third_party/WebKit/public/web/WebKit.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled); 257 settings->setRegionBasedColumnsEnabled(prefs.region_based_columns_enabled);
258 258
259 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled); 259 WebRuntimeFeatures::enableLazyLayout(prefs.lazy_layout_enabled);
260 WebRuntimeFeatures::enableTouch(prefs.touch_enabled); 260 WebRuntimeFeatures::enableTouch(prefs.touch_enabled);
261 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points); 261 settings->setMaxTouchPoints(prefs.pointer_events_max_touch_points);
262 settings->setDeviceSupportsTouch(prefs.device_supports_touch); 262 settings->setDeviceSupportsTouch(prefs.device_supports_touch);
263 settings->setDeviceSupportsMouse(prefs.device_supports_mouse); 263 settings->setDeviceSupportsMouse(prefs.device_supports_mouse);
264 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled); 264 settings->setEnableTouchAdjustment(prefs.touch_adjustment_enabled);
265 265
266 settings->setFixedPositionCreatesStackingContext(
267 prefs.fixed_position_creates_stacking_context);
268
269 settings->setDeferredImageDecodingEnabled( 266 settings->setDeferredImageDecodingEnabled(
270 prefs.deferred_image_decoding_enabled); 267 prefs.deferred_image_decoding_enabled);
271 settings->setShouldRespectImageOrientation( 268 settings->setShouldRespectImageOrientation(
272 prefs.should_respect_image_orientation); 269 prefs.should_respect_image_orientation);
273 270
274 settings->setUnsafePluginPastingEnabled(false); 271 settings->setUnsafePluginPastingEnabled(false);
275 settings->setEditingBehavior( 272 settings->setEditingBehavior(
276 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); 273 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior));
277 274
278 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); 275 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 settings->setPinchVirtualViewportEnabled( 328 settings->setPinchVirtualViewportEnabled(
332 prefs.pinch_virtual_viewport_enabled); 329 prefs.pinch_virtual_viewport_enabled);
333 330
334 settings->setPinchOverlayScrollbarThickness( 331 settings->setPinchOverlayScrollbarThickness(
335 prefs.pinch_overlay_scrollbar_thickness); 332 prefs.pinch_overlay_scrollbar_thickness);
336 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); 333 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
337 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); 334 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing);
338 } 335 }
339 336
340 } // namespace content 337 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/shell/common/webkit_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698