| OLD | NEW |
| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 // and support is compiled in. | 993 // and support is compiled in. |
| 994 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled); | 994 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled); |
| 995 | 995 |
| 996 // Enable WebGL errors to the JS console if requested. | 996 // Enable WebGL errors to the JS console if requested. |
| 997 settings->setWebGLErrorsToConsoleEnabled( | 997 settings->setWebGLErrorsToConsoleEnabled( |
| 998 prefs.webgl_errors_to_console_enabled); | 998 prefs.webgl_errors_to_console_enabled); |
| 999 | 999 |
| 1000 // Uses the mock theme engine for scrollbars. | 1000 // Uses the mock theme engine for scrollbars. |
| 1001 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); | 1001 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); |
| 1002 | 1002 |
| 1003 settings->setHideScrollbars(prefs.hide_scrollbars); |
| 1004 |
| 1003 // Enable gpu-accelerated 2d canvas if requested on the command line. | 1005 // Enable gpu-accelerated 2d canvas if requested on the command line. |
| 1004 WebRuntimeFeatures::enableAccelerated2dCanvas( | 1006 WebRuntimeFeatures::enableAccelerated2dCanvas( |
| 1005 prefs.accelerated_2d_canvas_enabled); | 1007 prefs.accelerated_2d_canvas_enabled); |
| 1006 | 1008 |
| 1007 settings->setMinimumAccelerated2dCanvasSize( | 1009 settings->setMinimumAccelerated2dCanvasSize( |
| 1008 prefs.minimum_accelerated_2d_canvas_size); | 1010 prefs.minimum_accelerated_2d_canvas_size); |
| 1009 | 1011 |
| 1010 // Disable antialiasing for 2d canvas if requested on the command line. | 1012 // Disable antialiasing for 2d canvas if requested on the command line. |
| 1011 settings->setAntialiased2dCanvasEnabled( | 1013 settings->setAntialiased2dCanvasEnabled( |
| 1012 !prefs.antialiased_2d_canvas_disabled); | 1014 !prefs.antialiased_2d_canvas_disabled); |
| (...skipping 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3049 return render_frame->focused_pepper_plugin(); | 3051 return render_frame->focused_pepper_plugin(); |
| 3050 } | 3052 } |
| 3051 frame = frame->traverseNext(false); | 3053 frame = frame->traverseNext(false); |
| 3052 } | 3054 } |
| 3053 | 3055 |
| 3054 return nullptr; | 3056 return nullptr; |
| 3055 } | 3057 } |
| 3056 #endif | 3058 #endif |
| 3057 | 3059 |
| 3058 } // namespace content | 3060 } // namespace content |
| OLD | NEW |