| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/svg/SVGGraphicsElement.h" | 28 #include "core/svg/SVGGraphicsElement.h" |
| 29 #include "core/svg/SVGImageLoader.h" | 29 #include "core/svg/SVGImageLoader.h" |
| 30 #include "core/svg/SVGURIReference.h" | 30 #include "core/svg/SVGURIReference.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class SVGImageElement final : public SVGGraphicsElement, | 35 class SVGImageElement final : public SVGGraphicsElement, |
| 36 public SVGURIReference { | 36 public SVGURIReference { |
| 37 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
| 38 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGImageElement); | 38 USING_GARBAGE_COLLECTED_MIXIN(SVGImageElement); |
| 39 public: | 39 public: |
| 40 DECLARE_NODE_FACTORY(SVGImageElement); | 40 DECLARE_NODE_FACTORY(SVGImageElement); |
| 41 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
| 42 | 42 |
| 43 bool currentFrameHasSingleSecurityOrigin() const; | 43 bool currentFrameHasSingleSecurityOrigin() const; |
| 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(); } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 68 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 68 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 69 | 69 |
| 70 const AtomicString imageSourceURL() const override; | 70 const AtomicString imageSourceURL() const override; |
| 71 | 71 |
| 72 bool haveLoadedRequiredResources() override; | 72 bool haveLoadedRequiredResources() override; |
| 73 | 73 |
| 74 bool selfHasRelativeLengths() const override; | 74 bool selfHasRelativeLengths() const override; |
| 75 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 Member<SVGAnimatedLength> m_x; |
| 79 RefPtrWillBeMember<SVGAnimatedLength> m_y; | 79 Member<SVGAnimatedLength> m_y; |
| 80 RefPtrWillBeMember<SVGAnimatedLength> m_width; | 80 Member<SVGAnimatedLength> m_width; |
| 81 RefPtrWillBeMember<SVGAnimatedLength> m_height; | 81 Member<SVGAnimatedLength> m_height; |
| 82 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 82 Member<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
| 83 | 83 |
| 84 OwnPtrWillBeMember<SVGImageLoader> m_imageLoader; | 84 Member<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 |