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

Side by Side Diff: Source/web/WebRuntimeFeatures.cpp

Issue 85463002: Web Animations: Remove WebAnimations runtime feature in favor of WebAnimationsCSS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698