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

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp

Issue 14324009: Add support for disabling CSS Properties at runtime (Closed) Base URL: http://src.chromium.org/blink/trunk/Source/
Patch Set: Updated per Mitica's comments Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 minimumAccelerated2dCanvasSize = 0; 75 minimumAccelerated2dCanvasSize = 0;
76 76
77 DOMPasteAllowed = true; 77 DOMPasteAllowed = true;
78 XSSAuditorEnabled = false; 78 XSSAuditorEnabled = false;
79 allowDisplayOfInsecureContent = true; 79 allowDisplayOfInsecureContent = true;
80 allowFileAccessFromFileURLs = true; 80 allowFileAccessFromFileURLs = true;
81 allowRunningOfInsecureContent = true; 81 allowRunningOfInsecureContent = true;
82 authorAndUserStylesEnabled = true; 82 authorAndUserStylesEnabled = true;
83 defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1"); 83 defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1");
84 experimentalWebGLEnabled = false; 84 experimentalWebGLEnabled = false;
85 experimentalCSSExclusionsEnabled = true;
85 experimentalCSSRegionsEnabled = true; 86 experimentalCSSRegionsEnabled = true;
86 experimentalCSSGridLayoutEnabled = false; 87 experimentalCSSGridLayoutEnabled = false;
87 javaEnabled = false; 88 javaEnabled = false;
88 javaScriptCanAccessClipboard = true; 89 javaScriptCanAccessClipboard = true;
89 javaScriptCanOpenWindowsAutomatically = true; 90 javaScriptCanOpenWindowsAutomatically = true;
90 supportsMultipleWindows = true; 91 supportsMultipleWindows = true;
91 javaScriptEnabled = true; 92 javaScriptEnabled = true;
92 loadsImagesAutomatically = true; 93 loadsImagesAutomatically = true;
93 localStorageEnabled = true; 94 localStorageEnabled = true;
94 offlineWebApplicationCacheEnabled = true; 95 offlineWebApplicationCacheEnabled = true;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 settings->setDOMPasteAllowed(DOMPasteAllowed); 149 settings->setDOMPasteAllowed(DOMPasteAllowed);
149 settings->setXSSAuditorEnabled(XSSAuditorEnabled); 150 settings->setXSSAuditorEnabled(XSSAuditorEnabled);
150 settings->setAllowDisplayOfInsecureContent(allowDisplayOfInsecureContent); 151 settings->setAllowDisplayOfInsecureContent(allowDisplayOfInsecureContent);
151 settings->setAllowFileAccessFromFileURLs(allowFileAccessFromFileURLs); 152 settings->setAllowFileAccessFromFileURLs(allowFileAccessFromFileURLs);
152 settings->setAllowRunningOfInsecureContent(allowRunningOfInsecureContent); 153 settings->setAllowRunningOfInsecureContent(allowRunningOfInsecureContent);
153 settings->setAuthorAndUserStylesEnabled(authorAndUserStylesEnabled); 154 settings->setAuthorAndUserStylesEnabled(authorAndUserStylesEnabled);
154 settings->setDefaultTextEncodingName(defaultTextEncodingName); 155 settings->setDefaultTextEncodingName(defaultTextEncodingName);
155 settings->setExperimentalWebGLEnabled(experimentalWebGLEnabled); 156 settings->setExperimentalWebGLEnabled(experimentalWebGLEnabled);
156 WebRuntimeFeatures::enableCSSRegions(experimentalCSSRegionsEnabled); 157 WebRuntimeFeatures::enableCSSRegions(experimentalCSSRegionsEnabled);
158 WebRuntimeFeatures::enableCSSExclusions(experimentalCSSExclusionsEnabled);
abarth-chromium 2013/04/24 21:02:13 This isn't really the right place to call these fu
157 settings->setExperimentalCSSGridLayoutEnabled(experimentalCSSGridLayoutEnabl ed); 159 settings->setExperimentalCSSGridLayoutEnabled(experimentalCSSGridLayoutEnabl ed);
158 settings->setExperimentalCSSCustomFilterEnabled(cssCustomFilterEnabled); 160 settings->setExperimentalCSSCustomFilterEnabled(cssCustomFilterEnabled);
159 settings->setJavaEnabled(javaEnabled); 161 settings->setJavaEnabled(javaEnabled);
160 settings->setJavaScriptCanAccessClipboard(javaScriptCanAccessClipboard); 162 settings->setJavaScriptCanAccessClipboard(javaScriptCanAccessClipboard);
161 settings->setJavaScriptCanOpenWindowsAutomatically(javaScriptCanOpenWindowsA utomatically); 163 settings->setJavaScriptCanOpenWindowsAutomatically(javaScriptCanOpenWindowsA utomatically);
162 settings->setSupportsMultipleWindows(supportsMultipleWindows); 164 settings->setSupportsMultipleWindows(supportsMultipleWindows);
163 settings->setJavaScriptEnabled(javaScriptEnabled); 165 settings->setJavaScriptEnabled(javaScriptEnabled);
164 settings->setLoadsImagesAutomatically(loadsImagesAutomatically); 166 settings->setLoadsImagesAutomatically(loadsImagesAutomatically);
165 settings->setLocalStorageEnabled(localStorageEnabled); 167 settings->setLocalStorageEnabled(localStorageEnabled);
166 settings->setOfflineWebApplicationCacheEnabled(offlineWebApplicationCacheEna bled); 168 settings->setOfflineWebApplicationCacheEnabled(offlineWebApplicationCacheEna bled);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 settings->setPasswordEchoEnabled(false); 216 settings->setPasswordEchoEnabled(false);
215 settings->setSmartInsertDeleteEnabled(true); 217 settings->setSmartInsertDeleteEnabled(true);
216 #ifdef WIN32 218 #ifdef WIN32
217 settings->setSelectTrailingWhitespaceEnabled(true); 219 settings->setSelectTrailingWhitespaceEnabled(true);
218 #else 220 #else
219 settings->setSelectTrailingWhitespaceEnabled(false); 221 settings->setSelectTrailingWhitespaceEnabled(false);
220 #endif 222 #endif
221 } 223 }
222 224
223 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698