| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() { return m_preserveAsp
ectRatio.get(); } | 49 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } |
| 50 | 50 |
| 51 // Exposed for testing. | 51 // Exposed for testing. |
| 52 ImageResource* cachedImage() const { return imageLoader().image(); } | 52 ImageResource* cachedImage() const { return imageLoader().image(); } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 explicit SVGImageElement(Document&); | 55 explicit SVGImageElement(Document&); |
| 56 | 56 |
| 57 virtual bool isStructurallyExternal() const override { return !hrefString().
isNull(); } | 57 bool isStructurallyExternal() const override { return !hrefString().isNull()
; } |
| 58 | 58 |
| 59 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 59 bool isPresentationAttribute(const QualifiedName&) const override; |
| 60 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o
verride; | 60 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; |
| 61 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 61 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
| 62 | 62 |
| 63 virtual void svgAttributeChanged(const QualifiedName&) override; | 63 void svgAttributeChanged(const QualifiedName&) override; |
| 64 | 64 |
| 65 virtual void attach(const AttachContext& = AttachContext()) override; | 65 void attach(const AttachContext& = AttachContext()) override; |
| 66 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 66 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 67 | 67 |
| 68 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override; | 68 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 69 | 69 |
| 70 virtual const AtomicString imageSourceURL() const override; | 70 const AtomicString imageSourceURL() const override; |
| 71 | 71 |
| 72 virtual bool haveLoadedRequiredResources() override; | 72 bool haveLoadedRequiredResources() override; |
| 73 | 73 |
| 74 virtual bool selfHasRelativeLengths() const override; | 74 bool selfHasRelativeLengths() const override; |
| 75 virtual void didMoveToNewDocument(Document& oldDocument) override; | 75 void didMoveToNewDocument(Document& oldDocument) override; |
| 76 SVGImageLoader& imageLoader() const { return *m_imageLoader; } | 76 SVGImageLoader& imageLoader() const { return *m_imageLoader; } |
| 77 | 77 |
| 78 RefPtrWillBeMember<SVGAnimatedLength> m_x; | 78 RefPtrWillBeMember<SVGAnimatedLength> m_x; |
| 79 RefPtrWillBeMember<SVGAnimatedLength> m_y; | 79 RefPtrWillBeMember<SVGAnimatedLength> m_y; |
| 80 RefPtrWillBeMember<SVGAnimatedLength> m_width; | 80 RefPtrWillBeMember<SVGAnimatedLength> m_width; |
| 81 RefPtrWillBeMember<SVGAnimatedLength> m_height; | 81 RefPtrWillBeMember<SVGAnimatedLength> m_height; |
| 82 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 82 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
| 83 | 83 |
| 84 OwnPtrWillBeMember<SVGImageLoader> m_imageLoader; | 84 OwnPtrWillBeMember<SVGImageLoader> m_imageLoader; |
| 85 bool m_needsLoaderURIUpdate : 1; | 85 bool m_needsLoaderURIUpdate : 1; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| 89 | 89 |
| 90 #endif // SVGImageElement_h | 90 #endif // SVGImageElement_h |
| OLD | NEW |