diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h b/chromium/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h index 38d3734f37e..db0924b8182 100644 --- a/chromium/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h +++ b/chromium/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h @@ -20,46 +20,43 @@ #ifndef SVGForeignObjectElement_h #define SVGForeignObjectElement_h -#include "SVGNames.h" +#include "core/SVGNames.h" #include "core/svg/SVGAnimatedBoolean.h" #include "core/svg/SVGAnimatedLength.h" -#include "core/svg/SVGExternalResourcesRequired.h" #include "core/svg/SVGGraphicsElement.h" #include "core/svg/SVGURIReference.h" namespace WebCore { -class SVGForeignObjectElement FINAL : public SVGGraphicsElement, - public SVGExternalResourcesRequired { +class SVGForeignObjectElement FINAL : public SVGGraphicsElement { public: - static PassRefPtr<SVGForeignObjectElement> create(Document&); + DECLARE_NODE_FACTORY(SVGForeignObjectElement); + + SVGAnimatedLength* x() const { return m_x.get(); } + SVGAnimatedLength* y() const { return m_y.get(); } + SVGAnimatedLength* width() const { return m_width.get(); } + SVGAnimatedLength* height() const { return m_height.get(); } private: explicit SVGForeignObjectElement(Document&); - virtual bool isValid() const { return SVGTests::isValid(); } bool isSupportedAttribute(const QualifiedName&); virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; - virtual void svgAttributeChanged(const QualifiedName&); + virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; + virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) OVERRIDE; + virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; - virtual bool childShouldCreateRenderer(const Node& child) const; - virtual RenderObject* createRenderer(RenderStyle*); + virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; - virtual bool selfHasRelativeLengths() const; + virtual bool selfHasRelativeLengths() const OVERRIDE; - BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGForeignObjectElement) - DECLARE_ANIMATED_LENGTH(X, x) - DECLARE_ANIMATED_LENGTH(Y, y) - DECLARE_ANIMATED_LENGTH(Width, width) - DECLARE_ANIMATED_LENGTH(Height, height) - DECLARE_ANIMATED_STRING(Href, href) - DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired) - END_DECLARE_ANIMATED_PROPERTIES + RefPtr<SVGAnimatedLength> m_x; + RefPtr<SVGAnimatedLength> m_y; + RefPtr<SVGAnimatedLength> m_width; + RefPtr<SVGAnimatedLength> m_height; }; -DEFINE_NODE_TYPE_CASTS(SVGForeignObjectElement, hasTagName(SVGNames::foreignObjectTag)); - } // namespace WebCore #endif |