OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 SVGAnimatedLength* x() const { return m_x.get(); } | 45 SVGAnimatedLength* x() const { return m_x.get(); } |
46 SVGAnimatedLength* y() const { return m_y.get(); } | 46 SVGAnimatedLength* y() const { return m_y.get(); } |
47 SVGAnimatedLength* width() const { return m_width.get(); } | 47 SVGAnimatedLength* width() const { return m_width.get(); } |
48 SVGAnimatedLength* height() const { return m_height.get(); } | 48 SVGAnimatedLength* height() const { return m_height.get(); } |
49 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { | 49 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { |
50 return m_preserveAspectRatio.get(); | 50 return m_preserveAspectRatio.get(); |
51 } | 51 } |
52 | 52 |
53 // Exposed for testing. | 53 // Exposed for testing. |
54 ImageResource* cachedImage() const { return imageLoader().image(); } | 54 ImageResourceContent* cachedImage() const { return imageLoader().image(); } |
55 | 55 |
56 private: | 56 private: |
57 explicit SVGImageElement(Document&); | 57 explicit SVGImageElement(Document&); |
58 | 58 |
59 bool isStructurallyExternal() const override { | 59 bool isStructurallyExternal() const override { |
60 return !hrefString().isNull(); | 60 return !hrefString().isNull(); |
61 } | 61 } |
62 | 62 |
63 void collectStyleForPresentationAttribute(const QualifiedName&, | 63 void collectStyleForPresentationAttribute(const QualifiedName&, |
64 const AtomicString&, | 64 const AtomicString&, |
(...skipping 20 matching lines...) Expand all Loading... |
85 Member<SVGAnimatedLength> m_height; | 85 Member<SVGAnimatedLength> m_height; |
86 Member<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 86 Member<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
87 | 87 |
88 Member<SVGImageLoader> m_imageLoader; | 88 Member<SVGImageLoader> m_imageLoader; |
89 bool m_needsLoaderURIUpdate : 1; | 89 bool m_needsLoaderURIUpdate : 1; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace blink | 92 } // namespace blink |
93 | 93 |
94 #endif // SVGImageElement_h | 94 #endif // SVGImageElement_h |
OLD | NEW |