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 | |
73 private: | 70 private: |
74 friend class AXRenderObject; | 71 friend class AXRenderObject; |
75 friend class SVGImageChromeClient; | 72 friend class SVGImageChromeClient; |
76 friend class SVGImageForContainer; | 73 friend class SVGImageForContainer; |
77 | 74 |
78 virtual ~SVGImage(); | 75 virtual ~SVGImage(); |
79 | 76 |
80 | 77 |
81 virtual String filenameExtension() const OVERRIDE; | 78 virtual String filenameExtension() const OVERRIDE; |
82 | 79 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 m_image->setImageObserver(m_observer); | 120 m_image->setImageObserver(m_observer); |
124 } | 121 } |
125 private: | 122 private: |
126 Image* m_image; | 123 Image* m_image; |
127 ImageObserver* m_observer; | 124 ImageObserver* m_observer; |
128 }; | 125 }; |
129 | 126 |
130 } | 127 } |
131 | 128 |
132 #endif // SVGImage_h | 129 #endif // SVGImage_h |
OLD | NEW |