| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 void startAnimation(CatchUpAnimation = CatchUp) override; | 73 void startAnimation(CatchUpAnimation = CatchUp) override; |
| 74 void resetAnimation() override; | 74 void resetAnimation() override; |
| 75 | 75 |
| 76 // Advances an animated image. This will trigger an animation update for CSS | 76 // Advances an animated image. This will trigger an animation update for CSS |
| 77 // and advance the SMIL timeline by one frame. | 77 // and advance the SMIL timeline by one frame. |
| 78 void advanceAnimationForTesting() override; | 78 void advanceAnimationForTesting() override; |
| 79 SVGImageChromeClient& chromeClientForTesting(); | 79 SVGImageChromeClient& chromeClientForTesting(); |
| 80 | 80 |
| 81 sk_sp<SkImage> imageForCurrentFrame() override; | 81 sk_sp<SkImage> imageForCurrentFrame() override; |
| 82 static FloatPoint offsetForCurrentFrame(const FloatRect& dstRect, |
| 83 const FloatRect& srcRect); |
| 82 | 84 |
| 83 // Does the SVG image/document contain any animations? | 85 // Does the SVG image/document contain any animations? |
| 84 bool hasAnimations() const; | 86 bool hasAnimations() const; |
| 85 // Service CSS and SMIL animations. | 87 // Service CSS and SMIL animations. |
| 86 void serviceAnimations(double monotonicAnimationStartTime); | 88 void serviceAnimations(double monotonicAnimationStartTime); |
| 87 | 89 |
| 88 void updateUseCounters(const Document&) const; | 90 void updateUseCounters(const Document&) const; |
| 89 | 91 |
| 90 // The defaultObjectSize is assumed to be unzoomed, i.e. it should | 92 // The defaultObjectSize is assumed to be unzoomed, i.e. it should |
| 91 // not have the effective zoom level applied. The returned size is | 93 // not have the effective zoom level applied. The returned size is |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 float, | 140 float, |
| 139 const FloatRect&, | 141 const FloatRect&, |
| 140 const FloatSize&, | 142 const FloatSize&, |
| 141 const FloatPoint&, | 143 const FloatPoint&, |
| 142 SkBlendMode, | 144 SkBlendMode, |
| 143 const FloatRect&, | 145 const FloatRect&, |
| 144 const FloatSize& repeatSpacing, | 146 const FloatSize& repeatSpacing, |
| 145 const KURL&); | 147 const KURL&); |
| 146 sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&, | 148 sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&, |
| 147 const IntSize& containerSize); | 149 const IntSize& containerSize); |
| 148 sk_sp<PaintRecord> paintRecordForCurrentFrame(const FloatRect& srcRect, | 150 sk_sp<PaintRecord> paintRecordForCurrentFrame(const FloatRect& bounds, |
| 149 const FloatRect& dstRect, | |
| 150 const KURL&); | 151 const KURL&); |
| 151 | 152 |
| 152 void drawInternal(PaintCanvas*, | 153 void drawInternal(PaintCanvas*, |
| 153 const PaintFlags&, | 154 const PaintFlags&, |
| 154 const FloatRect& fromRect, | 155 const FloatRect& fromRect, |
| 155 const FloatRect& toRect, | 156 const FloatRect& toRect, |
| 156 RespectImageOrientationEnum, | 157 RespectImageOrientationEnum, |
| 157 ImageClampingMode, | 158 ImageClampingMode, |
| 158 const KURL&); | 159 const KURL&); |
| 159 | 160 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 201 |
| 201 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } | 202 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } |
| 202 | 203 |
| 203 private: | 204 private: |
| 204 Image* m_image; | 205 Image* m_image; |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 } // namespace blink | 208 } // namespace blink |
| 208 | 209 |
| 209 #endif // SVGImage_h | 210 #endif // SVGImage_h |
| OLD | NEW |