| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 m_page->animator().serviceScriptedAnimations(rootElement->getCurrentTime
()); | 477 m_page->animator().serviceScriptedAnimations(rootElement->getCurrentTime
()); |
| 478 getImageObserver()->animationAdvanced(this); | 478 getImageObserver()->animationAdvanced(this); |
| 479 } | 479 } |
| 480 } | 480 } |
| 481 | 481 |
| 482 SVGImageChromeClient& SVGImage::chromeClientForTesting() | 482 SVGImageChromeClient& SVGImage::chromeClientForTesting() |
| 483 { | 483 { |
| 484 return *m_chromeClient; | 484 return *m_chromeClient; |
| 485 } | 485 } |
| 486 | 486 |
| 487 void SVGImage::updateUseCounters(Document& document) const | 487 void SVGImage::updateUseCounters(const Document& document) const |
| 488 { | 488 { |
| 489 if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { | 489 if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { |
| 490 if (rootElement->timeContainer()->hasAnimations()) | 490 if (rootElement->timeContainer()->hasAnimations()) |
| 491 UseCounter::count(document, UseCounter::SVGSMILAnimationInImageRegar
dlessOfCache); | 491 UseCounter::count(document, UseCounter::SVGSMILAnimationInImageRegar
dlessOfCache); |
| 492 } | 492 } |
| 493 } | 493 } |
| 494 | 494 |
| 495 Image::SizeAvailability SVGImage::dataChanged(bool allDataReceived) | 495 Image::SizeAvailability SVGImage::dataChanged(bool allDataReceived) |
| 496 { | 496 { |
| 497 TRACE_EVENT0("blink", "SVGImage::dataChanged"); | 497 TRACE_EVENT0("blink", "SVGImage::dataChanged"); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 574 |
| 575 return m_page ? SizeAvailable : SizeUnavailable; | 575 return m_page ? SizeAvailable : SizeUnavailable; |
| 576 } | 576 } |
| 577 | 577 |
| 578 String SVGImage::filenameExtension() const | 578 String SVGImage::filenameExtension() const |
| 579 { | 579 { |
| 580 return "svg"; | 580 return "svg"; |
| 581 } | 581 } |
| 582 | 582 |
| 583 } // namespace blink | 583 } // namespace blink |
| OLD | NEW |