Chromium Code Reviews| 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 13 matching lines...) Expand all Loading... | |
| 24 #include "SVGNames.h" | 24 #include "SVGNames.h" |
| 25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
| 26 #include "core/svg/SVGAnimatedLength.h" | 26 #include "core/svg/SVGAnimatedLength.h" |
| 27 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" | 27 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" |
| 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 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 class SVGImageElement FINAL : public SVGGraphicsElement, | 34 class SVGImageElement FINAL : public SVGGraphicsElement, |
|
haraken
2014/06/09 11:12:34
Nit: ',' should come to the head of the next line.
tkent
2014/06/10 01:43:09
It's unrelated to the purpose of this CL.
| |
| 35 public SVGURIReference { | 35 public SVGURIReference { |
| 36 public: | 36 public: |
| 37 DEFINE_NODE_FACTORY(SVGImageElement); | 37 DEFINE_NODE_FACTORY(SVGImageElement); |
| 38 virtual void trace(Visitor*) OVERRIDE; | |
| 38 | 39 |
| 39 bool currentFrameHasSingleSecurityOrigin() const; | 40 bool currentFrameHasSingleSecurityOrigin() const; |
| 40 | 41 |
| 41 SVGAnimatedLength* x() const { return m_x.get(); } | 42 SVGAnimatedLength* x() const { return m_x.get(); } |
| 42 SVGAnimatedLength* y() const { return m_y.get(); } | 43 SVGAnimatedLength* y() const { return m_y.get(); } |
| 43 SVGAnimatedLength* width() const { return m_width.get(); } | 44 SVGAnimatedLength* width() const { return m_width.get(); } |
| 44 SVGAnimatedLength* height() const { return m_height.get(); } | 45 SVGAnimatedLength* height() const { return m_height.get(); } |
| 45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); } | 46 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); } |
| 46 | 47 |
| 47 private: | 48 private: |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 59 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 60 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 60 | 61 |
| 61 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 62 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 62 | 63 |
| 63 virtual const AtomicString imageSourceURL() const OVERRIDE; | 64 virtual const AtomicString imageSourceURL() const OVERRIDE; |
| 64 | 65 |
| 65 virtual bool haveLoadedRequiredResources() OVERRIDE; | 66 virtual bool haveLoadedRequiredResources() OVERRIDE; |
| 66 | 67 |
| 67 virtual bool selfHasRelativeLengths() const OVERRIDE; | 68 virtual bool selfHasRelativeLengths() const OVERRIDE; |
| 68 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 69 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
| 70 SVGImageLoader& imageLoader() { return *m_imageLoader; } | |
| 69 | 71 |
| 70 RefPtr<SVGAnimatedLength> m_x; | 72 RefPtr<SVGAnimatedLength> m_x; |
| 71 RefPtr<SVGAnimatedLength> m_y; | 73 RefPtr<SVGAnimatedLength> m_y; |
| 72 RefPtr<SVGAnimatedLength> m_width; | 74 RefPtr<SVGAnimatedLength> m_width; |
| 73 RefPtr<SVGAnimatedLength> m_height; | 75 RefPtr<SVGAnimatedLength> m_height; |
| 74 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 76 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
| 75 | 77 |
| 76 SVGImageLoader m_imageLoader; | 78 OwnPtrWillBeMember<SVGImageLoader> m_imageLoader; |
| 77 bool m_needsLoaderURIUpdate : 1; | 79 bool m_needsLoaderURIUpdate : 1; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace WebCore | 82 } // namespace WebCore |
| 81 | 83 |
| 82 #endif | 84 #endif |
| OLD | NEW |