| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 514 |
| 515 void SVGImage::resetAnimation() { | 515 void SVGImage::resetAnimation() { |
| 516 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 516 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
| 517 if (!rootElement) | 517 if (!rootElement) |
| 518 return; | 518 return; |
| 519 m_chromeClient->suspendAnimation(); | 519 m_chromeClient->suspendAnimation(); |
| 520 rootElement->pauseAnimations(); | 520 rootElement->pauseAnimations(); |
| 521 scheduleTimelineRewind(); | 521 scheduleTimelineRewind(); |
| 522 } | 522 } |
| 523 | 523 |
| 524 bool SVGImage::hasAnimations() const { | 524 bool SVGImage::maybeAnimated() { |
| 525 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 525 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
| 526 if (!rootElement) | 526 if (!rootElement) |
| 527 return false; | 527 return false; |
| 528 return rootElement->timeContainer()->hasAnimations() || | 528 return rootElement->timeContainer()->hasAnimations() || |
| 529 toLocalFrame(m_page->mainFrame()) | 529 toLocalFrame(m_page->mainFrame()) |
| 530 ->document() | 530 ->document() |
| 531 ->timeline() | 531 ->timeline() |
| 532 .hasPendingUpdates(); | 532 .hasPendingUpdates(); |
| 533 } | 533 } |
| 534 | 534 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 } | 684 } |
| 685 | 685 |
| 686 return m_page ? SizeAvailable : SizeUnavailable; | 686 return m_page ? SizeAvailable : SizeUnavailable; |
| 687 } | 687 } |
| 688 | 688 |
| 689 String SVGImage::filenameExtension() const { | 689 String SVGImage::filenameExtension() const { |
| 690 return "svg"; | 690 return "svg"; |
| 691 } | 691 } |
| 692 | 692 |
| 693 } // namespace blink | 693 } // namespace blink |
| OLD | NEW |