| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool currentFrameHasSingleSecurityOrigin() const override; | 71 bool currentFrameHasSingleSecurityOrigin() const override; |
| 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(const ColorBehavior&) override; |
| 82 | 82 |
| 83 // Does the SVG image/document contain any animations? | 83 // Does the SVG image/document contain any animations? |
| 84 bool hasAnimations() const; | 84 bool hasAnimations() const; |
| 85 // Service CSS and SMIL animations. | 85 // Service CSS and SMIL animations. |
| 86 void serviceAnimations(double monotonicAnimationStartTime); | 86 void serviceAnimations(double monotonicAnimationStartTime); |
| 87 | 87 |
| 88 void updateUseCounters(const Document&) const; | 88 void updateUseCounters(const Document&) const; |
| 89 | 89 |
| 90 // The defaultObjectSize is assumed to be unzoomed, i.e. it should | 90 // The defaultObjectSize is assumed to be unzoomed, i.e. it should |
| 91 // not have the effective zoom level applied. The returned size is | 91 // not have the effective zoom level applied. The returned size is |
| (...skipping 26 matching lines...) Expand all Loading... |
| 118 // FIXME: Implement this to be less conservative. | 118 // FIXME: Implement this to be less conservative. |
| 119 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override { | 119 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override { |
| 120 return false; | 120 return false; |
| 121 } | 121 } |
| 122 | 122 |
| 123 void draw(SkCanvas*, | 123 void draw(SkCanvas*, |
| 124 const SkPaint&, | 124 const SkPaint&, |
| 125 const FloatRect& fromRect, | 125 const FloatRect& fromRect, |
| 126 const FloatRect& toRect, | 126 const FloatRect& toRect, |
| 127 RespectImageOrientationEnum, | 127 RespectImageOrientationEnum, |
| 128 ImageClampingMode) override; | 128 ImageClampingMode, |
| 129 const ColorBehavior&) override; |
| 129 void drawForContainer(SkCanvas*, | 130 void drawForContainer(SkCanvas*, |
| 130 const SkPaint&, | 131 const SkPaint&, |
| 131 const FloatSize, | 132 const FloatSize, |
| 132 float, | 133 float, |
| 133 const FloatRect&, | 134 const FloatRect&, |
| 134 const FloatRect&, | 135 const FloatRect&, |
| 135 const KURL&); | 136 const KURL&); |
| 136 void drawPatternForContainer(GraphicsContext&, | 137 void drawPatternForContainer(GraphicsContext&, |
| 137 const FloatSize, | 138 const FloatSize, |
| 138 float, | 139 float, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 184 |
| 184 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } | 185 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } |
| 185 | 186 |
| 186 private: | 187 private: |
| 187 Image* m_image; | 188 Image* m_image; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 } // namespace blink | 191 } // namespace blink |
| 191 | 192 |
| 192 #endif // SVGImage_h | 193 #endif // SVGImage_h |
| OLD | NEW |