OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 28 matching lines...) Expand all Loading... |
39 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) | 39 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) |
40 { | 40 { |
41 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); | 41 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); |
42 } | 42 } |
43 | 43 |
44 void WebRuntimeFeatures::enableBleedingEdgeFastPaths(bool enable) | 44 void WebRuntimeFeatures::enableBleedingEdgeFastPaths(bool enable) |
45 { | 45 { |
46 ASSERT(enable); | 46 ASSERT(enable); |
47 RuntimeEnabledFeatures::setBleedingEdgeFastPathsEnabled(enable); | 47 RuntimeEnabledFeatures::setBleedingEdgeFastPathsEnabled(enable); |
48 RuntimeEnabledFeatures::setSubpixelFontScalingEnabled(enable || RuntimeEnabl
edFeatures::subpixelFontScalingEnabled()); | 48 RuntimeEnabledFeatures::setSubpixelFontScalingEnabled(enable || RuntimeEnabl
edFeatures::subpixelFontScalingEnabled()); |
49 RuntimeEnabledFeatures::setCSSWillChangeEnabled(enable); | |
50 RuntimeEnabledFeatures::setWebAnimationsAPIEnabled(enable); | 49 RuntimeEnabledFeatures::setWebAnimationsAPIEnabled(enable); |
51 } | 50 } |
52 | 51 |
53 void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable) | 52 void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable) |
54 { | 53 { |
55 RuntimeEnabledFeatures::setTestFeaturesEnabled(enable); | 54 RuntimeEnabledFeatures::setTestFeaturesEnabled(enable); |
56 } | 55 } |
57 | 56 |
58 void WebRuntimeFeatures::enableApplicationCache(bool enable) | 57 void WebRuntimeFeatures::enableApplicationCache(bool enable) |
59 { | 58 { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 { | 286 { |
288 RuntimeEnabledFeatures::setShowModalDialogEnabled(enable); | 287 RuntimeEnabledFeatures::setShowModalDialogEnabled(enable); |
289 } | 288 } |
290 | 289 |
291 void WebRuntimeFeatures::enableLaxMixedContentChecking(bool enable) | 290 void WebRuntimeFeatures::enableLaxMixedContentChecking(bool enable) |
292 { | 291 { |
293 RuntimeEnabledFeatures::setLaxMixedContentCheckingEnabled(enable); | 292 RuntimeEnabledFeatures::setLaxMixedContentCheckingEnabled(enable); |
294 } | 293 } |
295 | 294 |
296 } // namespace blink | 295 } // namespace blink |
OLD | NEW |