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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 // FIXME: support CatchUpAnimation = CatchUp. | 400 // FIXME: support CatchUpAnimation = CatchUp. |
401 void SVGImage::startAnimation(CatchUpAnimation) | 401 void SVGImage::startAnimation(CatchUpAnimation) |
402 { | 402 { |
403 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 403 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
404 if (!rootElement || !rootElement->animationsPaused()) | 404 if (!rootElement || !rootElement->animationsPaused()) |
405 return; | 405 return; |
406 rootElement->unpauseAnimations(); | 406 rootElement->unpauseAnimations(); |
407 } | 407 } |
408 | 408 |
409 void SVGImage::stopAnimation() | |
410 { | |
411 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | |
412 if (!rootElement) | |
413 return; | |
414 rootElement->pauseAnimations(); | |
415 } | |
416 | |
417 void SVGImage::resetAnimation() | 409 void SVGImage::resetAnimation() |
418 { | 410 { |
419 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 411 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
420 if (!rootElement) | 412 if (!rootElement) |
421 return; | 413 return; |
422 rootElement->pauseAnimations(); | 414 rootElement->pauseAnimations(); |
423 rootElement->setCurrentTime(0); | 415 rootElement->setCurrentTime(0); |
424 } | 416 } |
425 | 417 |
426 bool SVGImage::hasAnimations() const | 418 bool SVGImage::hasAnimations() const |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 | 527 |
536 return m_page; | 528 return m_page; |
537 } | 529 } |
538 | 530 |
539 String SVGImage::filenameExtension() const | 531 String SVGImage::filenameExtension() const |
540 { | 532 { |
541 return "svg"; | 533 return "svg"; |
542 } | 534 } |
543 | 535 |
544 } // namespace blink | 536 } // namespace blink |
OLD | NEW |