| 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) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 bool isSVGImage() const override { return true; } | 56 bool isSVGImage() const override { return true; } |
| 57 IntSize size() const override { return m_intrinsicSize; } | 57 IntSize size() const override { return m_intrinsicSize; } |
| 58 void setURL(const KURL& url) { m_url = url; } | 58 void setURL(const KURL& url) { m_url = url; } |
| 59 | 59 |
| 60 bool currentFrameHasSingleSecurityOrigin() const override; | 60 bool currentFrameHasSingleSecurityOrigin() const override; |
| 61 | 61 |
| 62 void startAnimation(CatchUpAnimation = CatchUp) override; | 62 void startAnimation(CatchUpAnimation = CatchUp) override; |
| 63 void stopAnimation() override; | 63 void stopAnimation() override; |
| 64 void resetAnimation() override; | 64 void resetAnimation() override; |
| 65 | 65 |
| 66 // Advances an animated image. This will trigger an animation update for CSS |
| 67 // and advance the SMIL timeline by one frame. |
| 68 void advanceAnimationForTesting() override; |
| 69 |
| 66 PassRefPtr<SkImage> imageForCurrentFrame() override; | 70 PassRefPtr<SkImage> imageForCurrentFrame() override; |
| 67 | 71 |
| 68 // Returns the SVG image document's frame. | 72 // Returns the SVG image document's frame. |
| 69 FrameView* frameView() const; | 73 FrameView* frameView() const; |
| 70 | 74 |
| 71 // Does the SVG image/document contain any animations? | 75 // Does the SVG image/document contain any animations? |
| 72 bool hasAnimations() const; | 76 bool hasAnimations() const; |
| 73 | 77 |
| 74 void updateUseCounters(Document&) const; | 78 void updateUseCounters(Document&) const; |
| 75 | 79 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 m_image->setImageObserver(m_observer); | 133 m_image->setImageObserver(m_observer); |
| 130 } | 134 } |
| 131 private: | 135 private: |
| 132 Image* m_image; | 136 Image* m_image; |
| 133 ImageObserver* m_observer; | 137 ImageObserver* m_observer; |
| 134 }; | 138 }; |
| 135 | 139 |
| 136 } | 140 } |
| 137 | 141 |
| 138 #endif // SVGImage_h | 142 #endif // SVGImage_h |
| OLD | NEW |