| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 { | 465 { |
| 466 if (pauseTime < 0) { | 466 if (pauseTime < 0) { |
| 467 exceptionState.throwDOMException(InvalidAccessError, ExceptionMessages::
indexExceedsMinimumBound("pauseTime", pauseTime, 0.0)); | 467 exceptionState.throwDOMException(InvalidAccessError, ExceptionMessages::
indexExceedsMinimumBound("pauseTime", pauseTime, 0.0)); |
| 468 return; | 468 return; |
| 469 } | 469 } |
| 470 | 470 |
| 471 frame()->view()->updateLayoutAndStyleForPainting(); | 471 frame()->view()->updateLayoutAndStyleForPainting(); |
| 472 frame()->document()->timeline().pauseAnimationsForTesting(pauseTime); | 472 frame()->document()->timeline().pauseAnimationsForTesting(pauseTime); |
| 473 } | 473 } |
| 474 | 474 |
| 475 bool Internals::isCompositedAnimation(Animation* animation) |
| 476 { |
| 477 return animation->hasActiveAnimationsOnCompositor(); |
| 478 } |
| 479 |
| 475 void Internals::advanceTimeForImage(Element* image, double deltaTimeInSeconds, E
xceptionState& exceptionState) | 480 void Internals::advanceTimeForImage(Element* image, double deltaTimeInSeconds, E
xceptionState& exceptionState) |
| 476 { | 481 { |
| 477 ASSERT(image); | 482 ASSERT(image); |
| 478 if (deltaTimeInSeconds < 0) { | 483 if (deltaTimeInSeconds < 0) { |
| 479 exceptionState.throwDOMException(InvalidAccessError, ExceptionMessages::
indexExceedsMinimumBound("deltaTimeInSeconds", deltaTimeInSeconds, 0.0)); | 484 exceptionState.throwDOMException(InvalidAccessError, ExceptionMessages::
indexExceedsMinimumBound("deltaTimeInSeconds", deltaTimeInSeconds, 0.0)); |
| 480 return; | 485 return; |
| 481 } | 486 } |
| 482 | 487 |
| 483 if (!isHTMLImageElement(*image)) { | 488 if (!isHTMLImageElement(*image)) { |
| 484 exceptionState.throwDOMException(InvalidAccessError, "The element provid
ed is not a image element."); | 489 exceptionState.throwDOMException(InvalidAccessError, "The element provid
ed is not a image element."); |
| (...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2438 return ClientRectList::create(rects); | 2443 return ClientRectList::create(rects); |
| 2439 } | 2444 } |
| 2440 | 2445 |
| 2441 void Internals::setCapsLockState(bool enabled) | 2446 void Internals::setCapsLockState(bool enabled) |
| 2442 { | 2447 { |
| 2443 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? | 2448 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? |
| 2444 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); | 2449 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); |
| 2445 } | 2450 } |
| 2446 | 2451 |
| 2447 } // namespace blink | 2452 } // namespace blink |
| OLD | NEW |