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

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

Issue 250263005: Remove --disable-threaded-html-parser flag from Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 // Enable WebGL errors to the JS console if requested. 191 // Enable WebGL errors to the JS console if requested.
192 settings->setWebGLErrorsToConsoleEnabled( 192 settings->setWebGLErrorsToConsoleEnabled(
193 prefs.webgl_errors_to_console_enabled); 193 prefs.webgl_errors_to_console_enabled);
194 194
195 // Uses the mock theme engine for scrollbars. 195 // Uses the mock theme engine for scrollbars.
196 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); 196 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled);
197 197
198 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled); 198 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled);
199 199
200 settings->setThreadedHTMLParser(prefs.threaded_html_parser);
201
202 // Display visualization of what has changed on the screen using an 200 // Display visualization of what has changed on the screen using an
203 // overlay of rects, if requested on the command line. 201 // overlay of rects, if requested on the command line.
204 settings->setShowPaintRects(prefs.show_paint_rects); 202 settings->setShowPaintRects(prefs.show_paint_rects);
205 203
206 // Enable gpu-accelerated compositing if requested on the command line. 204 // Enable gpu-accelerated compositing if requested on the command line.
207 settings->setAcceleratedCompositingEnabled( 205 settings->setAcceleratedCompositingEnabled(
208 prefs.accelerated_compositing_enabled); 206 prefs.accelerated_compositing_enabled);
209 207
210 // Enable gpu-accelerated 2d canvas if requested on the command line. 208 // Enable gpu-accelerated 2d canvas if requested on the command line.
211 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled); 209 settings->setAccelerated2dCanvasEnabled(prefs.accelerated_2d_canvas_enabled);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 settings->setPinchVirtualViewportEnabled( 348 settings->setPinchVirtualViewportEnabled(
351 prefs.pinch_virtual_viewport_enabled); 349 prefs.pinch_virtual_viewport_enabled);
352 350
353 settings->setPinchOverlayScrollbarThickness( 351 settings->setPinchOverlayScrollbarThickness(
354 prefs.pinch_overlay_scrollbar_thickness); 352 prefs.pinch_overlay_scrollbar_thickness);
355 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); 353 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
356 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); 354 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing);
357 } 355 }
358 356
359 } // namespace content 357 } // 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