| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 bool currentFrameHasSingleSecurityOrigin() const override; | 59 bool currentFrameHasSingleSecurityOrigin() const override; |
| 60 | 60 |
| 61 void startAnimation(CatchUpAnimation = CatchUp) override; | 61 void startAnimation(CatchUpAnimation = CatchUp) override; |
| 62 void resetAnimation() override; | 62 void resetAnimation() override; |
| 63 | 63 |
| 64 // Advances an animated image. This will trigger an animation update for CSS | 64 // Advances an animated image. This will trigger an animation update for CSS |
| 65 // and advance the SMIL timeline by one frame. | 65 // and advance the SMIL timeline by one frame. |
| 66 void advanceAnimationForTesting() override; | 66 void advanceAnimationForTesting() override; |
| 67 SVGImageChromeClient& chromeClientForTesting(); | 67 SVGImageChromeClient& chromeClientForTesting(); |
| 68 | 68 |
| 69 PassRefPtr<SkImage> imageForCurrentFrame() override; | 69 PassRefPtr<SkImage> imageForCurrentFrame(WebGraphicsContext3DProvider* = nul
lptr) override; |
| 70 | 70 |
| 71 // Does the SVG image/document contain any animations? | 71 // Does the SVG image/document contain any animations? |
| 72 bool hasAnimations() const; | 72 bool hasAnimations() const; |
| 73 // Service CSS and SMIL animations. | 73 // Service CSS and SMIL animations. |
| 74 void serviceAnimations(double monotonicAnimationStartTime); | 74 void serviceAnimations(double monotonicAnimationStartTime); |
| 75 | 75 |
| 76 void updateUseCounters(Document&) const; | 76 void updateUseCounters(Document&) const; |
| 77 | 77 |
| 78 // The defaultObjectSize is assumed to be unzoomed, i.e. it should | 78 // The defaultObjectSize is assumed to be unzoomed, i.e. it should |
| 79 // not have the effective zoom level applied. The returned size is | 79 // not have the effective zoom level applied. The returned size is |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 { | 144 { |
| 145 m_image->setImageObserverDisabled(false); | 145 m_image->setImageObserverDisabled(false); |
| 146 } | 146 } |
| 147 private: | 147 private: |
| 148 Image* m_image; | 148 Image* m_image; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // SVGImage_h | 153 #endif // SVGImage_h |
| OLD | NEW |