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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual bool isSVGImage() const { return true; } | 53 virtual bool isSVGImage() const { return true; } |
54 virtual IntSize size() const OVERRIDE { return m_intrinsicSize; } | 54 virtual IntSize size() const OVERRIDE { return m_intrinsicSize; } |
55 | 55 |
56 virtual bool hasRelativeWidth() const; | 56 virtual bool hasRelativeWidth() const; |
57 virtual bool hasRelativeHeight() const; | 57 virtual bool hasRelativeHeight() const; |
58 | 58 |
59 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE; | 59 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE; |
60 virtual void stopAnimation() OVERRIDE; | 60 virtual void stopAnimation() OVERRIDE; |
61 virtual void resetAnimation() OVERRIDE; | 61 virtual void resetAnimation() OVERRIDE; |
62 | 62 |
63 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
64 | |
65 virtual PassNativeImagePtr nativeImageForCurrentFrame() OVERRIDE; | 63 virtual PassNativeImagePtr nativeImageForCurrentFrame() OVERRIDE; |
66 | 64 |
67 private: | 65 private: |
68 friend class SVGImageChromeClient; | 66 friend class SVGImageChromeClient; |
69 friend class SVGImageForContainer; | 67 friend class SVGImageForContainer; |
70 | 68 |
71 virtual ~SVGImage(); | 69 virtual ~SVGImage(); |
72 | 70 |
73 virtual String filenameExtension() const; | 71 virtual String filenameExtension() const; |
74 | 72 |
(...skipping 19 matching lines...) Expand all Loading... |
94 CompositeOperator, const FloatRect&); | 92 CompositeOperator, const FloatRect&); |
95 | 93 |
96 OwnPtr<SVGImageChromeClient> m_chromeClient; | 94 OwnPtr<SVGImageChromeClient> m_chromeClient; |
97 OwnPtr<Page> m_page; | 95 OwnPtr<Page> m_page; |
98 IntSize m_intrinsicSize; | 96 IntSize m_intrinsicSize; |
99 }; | 97 }; |
100 } | 98 } |
101 | 99 |
102 #endif // ENABLE(SVG) | 100 #endif // ENABLE(SVG) |
103 #endif // SVGImage_h | 101 #endif // SVGImage_h |
OLD | NEW |