| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "core/svg/SVGAnimatedLength.h" | 25 #include "core/svg/SVGAnimatedLength.h" |
| 26 #include "core/svg/SVGGraphicsElement.h" | 26 #include "core/svg/SVGGraphicsElement.h" |
| 27 #include "core/svg/SVGURIReference.h" | 27 #include "core/svg/SVGURIReference.h" |
| 28 | 28 |
| 29 namespace WebCore { | 29 namespace WebCore { |
| 30 | 30 |
| 31 class SVGForeignObjectElement FINAL : public SVGGraphicsElement { | 31 class SVGForeignObjectElement FINAL : public SVGGraphicsElement { |
| 32 public: | 32 public: |
| 33 static PassRefPtr<SVGForeignObjectElement> create(Document&); | 33 static PassRefPtr<SVGForeignObjectElement> create(Document&); |
| 34 | 34 |
| 35 SVGAnimatedLength* x() const { return m_x.get(); } |
| 36 SVGAnimatedLength* y() const { return m_y.get(); } |
| 37 SVGAnimatedLength* width() const { return m_width.get(); } |
| 38 SVGAnimatedLength* height() const { return m_height.get(); } |
| 39 |
| 35 private: | 40 private: |
| 36 explicit SVGForeignObjectElement(Document&); | 41 explicit SVGForeignObjectElement(Document&); |
| 37 | 42 |
| 38 virtual bool isValid() const { return SVGTests::isValid(); } | 43 virtual bool isValid() const { return SVGTests::isValid(); } |
| 39 bool isSupportedAttribute(const QualifiedName&); | 44 bool isSupportedAttribute(const QualifiedName&); |
| 40 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 41 virtual void svgAttributeChanged(const QualifiedName&); | 46 virtual void svgAttributeChanged(const QualifiedName&); |
| 42 | 47 |
| 43 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 48 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; |
| 44 virtual bool childShouldCreateRenderer(const Node& child) const; | 49 virtual bool childShouldCreateRenderer(const Node& child) const; |
| 45 virtual RenderObject* createRenderer(RenderStyle*); | 50 virtual RenderObject* createRenderer(RenderStyle*); |
| 46 | 51 |
| 47 virtual bool selfHasRelativeLengths() const; | 52 virtual bool selfHasRelativeLengths() const; |
| 48 | 53 |
| 54 RefPtr<SVGAnimatedLength> m_x; |
| 55 RefPtr<SVGAnimatedLength> m_y; |
| 56 RefPtr<SVGAnimatedLength> m_width; |
| 57 RefPtr<SVGAnimatedLength> m_height; |
| 49 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGForeignObjectElement) | 58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGForeignObjectElement) |
| 50 DECLARE_ANIMATED_LENGTH(X, x) | |
| 51 DECLARE_ANIMATED_LENGTH(Y, y) | |
| 52 DECLARE_ANIMATED_LENGTH(Width, width) | |
| 53 DECLARE_ANIMATED_LENGTH(Height, height) | |
| 54 DECLARE_ANIMATED_STRING(Href, href) | 59 DECLARE_ANIMATED_STRING(Href, href) |
| 55 END_DECLARE_ANIMATED_PROPERTIES | 60 END_DECLARE_ANIMATED_PROPERTIES |
| 56 }; | 61 }; |
| 57 | 62 |
| 58 DEFINE_NODE_TYPE_CASTS(SVGForeignObjectElement, hasTagName(SVGNames::foreignObje
ctTag)); | 63 DEFINE_NODE_TYPE_CASTS(SVGForeignObjectElement, hasTagName(SVGNames::foreignObje
ctTag)); |
| 59 | 64 |
| 60 } // namespace WebCore | 65 } // namespace WebCore |
| 61 | 66 |
| 62 #endif | 67 #endif |
| OLD | NEW |