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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return AdoptRef(new SVGImage(observer)); | 61 return AdoptRef(new SVGImage(observer)); |
62 } | 62 } |
63 | 63 |
64 static bool IsInSVGImage(const Node*); | 64 static bool IsInSVGImage(const Node*); |
65 | 65 |
66 LayoutReplaced* EmbeddedReplacedContent() const; | 66 LayoutReplaced* EmbeddedReplacedContent() const; |
67 | 67 |
68 bool IsSVGImage() const override { return true; } | 68 bool IsSVGImage() const override { return true; } |
69 IntSize Size() const override { return intrinsic_size_; } | 69 IntSize Size() const override { return intrinsic_size_; } |
70 | 70 |
| 71 void CheckLoaded() const; |
71 bool CurrentFrameHasSingleSecurityOrigin() const override; | 72 bool CurrentFrameHasSingleSecurityOrigin() const override; |
72 | 73 |
73 void StartAnimation(CatchUpAnimation = kCatchUp) override; | 74 void StartAnimation(CatchUpAnimation = kCatchUp) override; |
74 void ResetAnimation() override; | 75 void ResetAnimation() override; |
75 | 76 |
76 // Does the SVG image/document contain any animations? | 77 // Does the SVG image/document contain any animations? |
77 bool MaybeAnimated() override; | 78 bool MaybeAnimated() override; |
78 | 79 |
79 // Advances an animated image. This will trigger an animation update for CSS | 80 // Advances an animated image. This will trigger an animation update for CSS |
80 // and advance the SMIL timeline by one frame. | 81 // and advance the SMIL timeline by one frame. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 228 |
228 ~ImageObserverDisabler() { image_->SetImageObserverDisabled(false); } | 229 ~ImageObserverDisabler() { image_->SetImageObserverDisabled(false); } |
229 | 230 |
230 private: | 231 private: |
231 Image* image_; | 232 Image* image_; |
232 }; | 233 }; |
233 | 234 |
234 } // namespace blink | 235 } // namespace blink |
235 | 236 |
236 #endif // SVGImage_h | 237 #endif // SVGImage_h |
OLD | NEW |