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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE; | 61 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE; |
62 virtual void stopAnimation() OVERRIDE; | 62 virtual void stopAnimation() OVERRIDE; |
63 virtual void resetAnimation() OVERRIDE; | 63 virtual void resetAnimation() OVERRIDE; |
64 | 64 |
65 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE; | 65 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE; |
66 | 66 |
67 // Returns the SVG image document's frame. | 67 // Returns the SVG image document's frame. |
68 FrameView* frameView() const; | 68 FrameView* frameView() const; |
69 | 69 |
| 70 // Does the SVG image/document contain any animations? |
| 71 bool hasAnimations() const; |
| 72 |
70 private: | 73 private: |
71 friend class AXRenderObject; | 74 friend class AXRenderObject; |
72 friend class SVGImageChromeClient; | 75 friend class SVGImageChromeClient; |
73 friend class SVGImageForContainer; | 76 friend class SVGImageForContainer; |
74 | 77 |
75 virtual ~SVGImage(); | 78 virtual ~SVGImage(); |
76 | 79 |
77 | 80 |
78 virtual String filenameExtension() const OVERRIDE; | 81 virtual String filenameExtension() const OVERRIDE; |
79 | 82 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 m_image->setImageObserver(m_observer); | 123 m_image->setImageObserver(m_observer); |
121 } | 124 } |
122 private: | 125 private: |
123 Image* m_image; | 126 Image* m_image; |
124 ImageObserver* m_observer; | 127 ImageObserver* m_observer; |
125 }; | 128 }; |
126 | 129 |
127 } | 130 } |
128 | 131 |
129 #endif // SVGImage_h | 132 #endif // SVGImage_h |
OLD | NEW |