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 20 matching lines...) Expand all Loading... |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebRuntimeFeatures.h" | 32 #include "WebRuntimeFeatures.h" |
33 | 33 |
34 #include "RuntimeEnabledFeatures.h" | 34 #include "RuntimeEnabledFeatures.h" |
35 #include "WebMediaPlayerClientImpl.h" | 35 #include "WebMediaPlayerClientImpl.h" |
36 | 36 |
37 using namespace WebCore; | 37 using namespace WebCore; |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 void WebRuntimeFeatures::enableStableFeatures(bool enable) | |
42 { | |
43 // FIXME: This entire method should be removed once it is no longer called b
y Chromium. | |
44 ASSERT(enable); | |
45 } | |
46 | |
47 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) | 41 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) |
48 { | 42 { |
49 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); | 43 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); |
50 } | 44 } |
51 | 45 |
52 void WebRuntimeFeatures::enableBleedingEdgeFastPaths(bool enable) | 46 void WebRuntimeFeatures::enableBleedingEdgeFastPaths(bool enable) |
53 { | 47 { |
54 ASSERT(enable); | 48 ASSERT(enable); |
55 RuntimeEnabledFeatures::setBleedingEdgeFastPathsEnabled(enable); | 49 RuntimeEnabledFeatures::setBleedingEdgeFastPathsEnabled(enable); |
56 RuntimeEnabledFeatures::setSubpixelFontScalingEnabled(enable || RuntimeEnabl
edFeatures::subpixelFontScalingEnabled()); | 50 RuntimeEnabledFeatures::setSubpixelFontScalingEnabled(enable || RuntimeEnabl
edFeatures::subpixelFontScalingEnabled()); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 { | 280 { |
287 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 281 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
288 } | 282 } |
289 | 283 |
290 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) | 284 void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable) |
291 { | 285 { |
292 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); | 286 RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable); |
293 } | 287 } |
294 | 288 |
295 } // namespace blink | 289 } // namespace blink |
OLD | NEW |