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 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 settings->setDOMPasteAllowed(prefs.dom_paste_enabled); | 940 settings->setDOMPasteAllowed(prefs.dom_paste_enabled); |
941 settings->setShrinksStandaloneImagesToFit( | 941 settings->setShrinksStandaloneImagesToFit( |
942 prefs.shrinks_standalone_images_to_fit); | 942 prefs.shrinks_standalone_images_to_fit); |
943 settings->setUsesEncodingDetector(prefs.uses_universal_detector); | 943 settings->setUsesEncodingDetector(prefs.uses_universal_detector); |
944 settings->setTextAreasAreResizable(prefs.text_areas_are_resizable); | 944 settings->setTextAreasAreResizable(prefs.text_areas_are_resizable); |
945 settings->setAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows); | 945 settings->setAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows); |
946 settings->setDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled); | 946 settings->setDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled); |
947 settings->setJavaScriptCanAccessClipboard( | 947 settings->setJavaScriptCanAccessClipboard( |
948 prefs.javascript_can_access_clipboard); | 948 prefs.javascript_can_access_clipboard); |
949 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); | 949 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); |
| 950 WebRuntimeFeatures::enableSlimmingPaint(prefs.slimming_paint_enabled); |
950 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); | 951 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); |
951 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); | 952 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); |
952 settings->setLocalStorageEnabled(prefs.local_storage_enabled); | 953 settings->setLocalStorageEnabled(prefs.local_storage_enabled); |
953 settings->setSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled); | 954 settings->setSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled); |
954 WebRuntimeFeatures::enableDatabase(prefs.databases_enabled); | 955 WebRuntimeFeatures::enableDatabase(prefs.databases_enabled); |
955 settings->setOfflineWebApplicationCacheEnabled( | 956 settings->setOfflineWebApplicationCacheEnabled( |
956 prefs.application_cache_enabled); | 957 prefs.application_cache_enabled); |
957 settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled); | 958 settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled); |
958 settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled); | 959 settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled); |
959 settings->setCookieEnabled(prefs.cookie_enabled); | 960 settings->setCookieEnabled(prefs.cookie_enabled); |
(...skipping 3252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4212 std::vector<gfx::Size> sizes; | 4213 std::vector<gfx::Size> sizes; |
4213 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4214 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4214 if (!url.isEmpty()) | 4215 if (!url.isEmpty()) |
4215 urls.push_back( | 4216 urls.push_back( |
4216 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4217 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4217 } | 4218 } |
4218 SendUpdateFaviconURL(urls); | 4219 SendUpdateFaviconURL(urls); |
4219 } | 4220 } |
4220 | 4221 |
4221 } // namespace content | 4222 } // namespace content |
OLD | NEW |