| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 RuntimeEnabledFeatures::setTouchEnabled(enable); | 354 RuntimeEnabledFeatures::setTouchEnabled(enable); |
| 355 } | 355 } |
| 356 | 356 |
| 357 bool WebRuntimeFeatures::isTouchEnabled() | 357 bool WebRuntimeFeatures::isTouchEnabled() |
| 358 { | 358 { |
| 359 return RuntimeEnabledFeatures::touchEnabled(); | 359 return RuntimeEnabledFeatures::touchEnabled(); |
| 360 } | 360 } |
| 361 | 361 |
| 362 void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable) | 362 void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable) |
| 363 { | 363 { |
| 364 RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeat
ures::webAnimationsSVGEnabled()); | |
| 365 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(enable); | 364 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(enable); |
| 366 } | 365 } |
| 367 | 366 |
| 368 void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable) | 367 void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable) |
| 369 { | 368 { |
| 370 RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeat
ures::webAnimationsCSSEnabled()); | |
| 371 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable); | 369 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable); |
| 372 } | 370 } |
| 373 | 371 |
| 374 void WebRuntimeFeatures::enableWebAudio(bool enable) | 372 void WebRuntimeFeatures::enableWebAudio(bool enable) |
| 375 { | 373 { |
| 376 RuntimeEnabledFeatures::setWebAudioEnabled(enable); | 374 RuntimeEnabledFeatures::setWebAudioEnabled(enable); |
| 377 } | 375 } |
| 378 | 376 |
| 379 bool WebRuntimeFeatures::isWebAudioEnabled() | 377 bool WebRuntimeFeatures::isWebAudioEnabled() |
| 380 { | 378 { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 { | 448 { |
| 451 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); | 449 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); |
| 452 } | 450 } |
| 453 | 451 |
| 454 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) | 452 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) |
| 455 { | 453 { |
| 456 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); | 454 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); |
| 457 } | 455 } |
| 458 | 456 |
| 459 } // namespace blink | 457 } // namespace blink |
| OLD | NEW |