OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 // FIXME: support CatchUpAnimation = CatchUp. | 401 // FIXME: support CatchUpAnimation = CatchUp. |
402 void SVGImage::startAnimation(CatchUpAnimation) | 402 void SVGImage::startAnimation(CatchUpAnimation) |
403 { | 403 { |
404 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 404 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
405 if (!rootElement || !rootElement->animationsPaused()) | 405 if (!rootElement || !rootElement->animationsPaused()) |
406 return; | 406 return; |
407 rootElement->unpauseAnimations(); | 407 rootElement->unpauseAnimations(); |
408 } | 408 } |
409 | 409 |
410 void SVGImage::stopAnimation() | |
411 { | |
412 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | |
413 if (!rootElement) | |
414 return; | |
415 rootElement->pauseAnimations(); | |
416 } | |
417 | |
418 void SVGImage::resetAnimation() | 410 void SVGImage::resetAnimation() |
419 { | 411 { |
420 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 412 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
421 if (!rootElement) | 413 if (!rootElement) |
422 return; | 414 return; |
423 rootElement->pauseAnimations(); | 415 rootElement->pauseAnimations(); |
424 rootElement->setCurrentTime(0); | 416 rootElement->setCurrentTime(0); |
425 } | 417 } |
426 | 418 |
427 bool SVGImage::hasAnimations() const | 419 bool SVGImage::hasAnimations() const |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 | 528 |
537 return m_page; | 529 return m_page; |
538 } | 530 } |
539 | 531 |
540 String SVGImage::filenameExtension() const | 532 String SVGImage::filenameExtension() const |
541 { | 533 { |
542 return "svg"; | 534 return "svg"; |
543 } | 535 } |
544 | 536 |
545 } // namespace blink | 537 } // namespace blink |
OLD | NEW |