| 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 settings->setAccelerated2dCanvasMSAASampleCount( | 899 settings->setAccelerated2dCanvasMSAASampleCount( |
| 900 prefs.accelerated_2d_canvas_msaa_sample_count); | 900 prefs.accelerated_2d_canvas_msaa_sample_count); |
| 901 | 901 |
| 902 // Tabs to link is not part of the settings. WebCore calls | 902 // Tabs to link is not part of the settings. WebCore calls |
| 903 // ChromeClient::tabsToLinks which is part of the glue code. | 903 // ChromeClient::tabsToLinks which is part of the glue code. |
| 904 web_view->setTabsToLinks(prefs.tabs_to_links); | 904 web_view->setTabsToLinks(prefs.tabs_to_links); |
| 905 | 905 |
| 906 settings->setAllowRunningOfInsecureContent( | 906 settings->setAllowRunningOfInsecureContent( |
| 907 prefs.allow_running_insecure_content); | 907 prefs.allow_running_insecure_content); |
| 908 settings->setDisableReadingFromCanvas(prefs.disable_reading_from_canvas); | 908 settings->setDisableReadingFromCanvas(prefs.disable_reading_from_canvas); |
| 909 // Force a redundant skia surface copy of 2D canvas. crbug.com/665656 |
| 910 settings->setForceRedundant2dCanvasCopy(prefs.force_redundant_2d_canvas_copy); |
| 911 |
| 909 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); | 912 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); |
| 910 | 913 |
| 911 settings->setStrictlyBlockBlockableMixedContent( | 914 settings->setStrictlyBlockBlockableMixedContent( |
| 912 prefs.strictly_block_blockable_mixed_content); | 915 prefs.strictly_block_blockable_mixed_content); |
| 913 | 916 |
| 914 settings->setStrictMixedContentCheckingForPlugin( | 917 settings->setStrictMixedContentCheckingForPlugin( |
| 915 prefs.block_mixed_plugin_content); | 918 prefs.block_mixed_plugin_content); |
| 916 | 919 |
| 917 settings->setStrictPowerfulFeatureRestrictions( | 920 settings->setStrictPowerfulFeatureRestrictions( |
| 918 prefs.strict_powerful_feature_restrictions); | 921 prefs.strict_powerful_feature_restrictions); |
| (...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2815 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 2813 } | 2816 } |
| 2814 | 2817 |
| 2815 std::unique_ptr<InputEventAck> ack( | 2818 std::unique_ptr<InputEventAck> ack( |
| 2816 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, | 2819 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type, |
| 2817 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2820 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 2818 OnInputEventAck(std::move(ack)); | 2821 OnInputEventAck(std::move(ack)); |
| 2819 } | 2822 } |
| 2820 | 2823 |
| 2821 } // namespace content | 2824 } // namespace content |
| OLD | NEW |