KHTML
SVGForeignObjectElement.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SVGForeignObjectElement_h
00023 #define SVGForeignObjectElement_h
00024
00025 #if ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT)
00026 #include "SVGTests.h"
00027 #include "SVGLangSpace.h"
00028 #include "SVGURIReference.h"
00029 #include "SVGStyledTransformableElement.h"
00030 #include "SVGExternalResourcesRequired.h"
00031
00032 namespace WebCore {
00033 class SVGLength;
00034
00035 class SVGForeignObjectElement : public SVGStyledTransformableElement,
00036 public SVGTests,
00037 public SVGLangSpace,
00038 public SVGExternalResourcesRequired,
00039 public SVGURIReference {
00040 public:
00041 SVGForeignObjectElement(const QualifiedName&, Document*);
00042 virtual ~SVGForeignObjectElement();
00043
00044 virtual bool isValid() const { return SVGTests::isValid(); }
00045 virtual void parseMappedAttribute(MappedAttribute*);
00046 virtual void svgAttributeChanged(const QualifiedName&);
00047
00048 bool childShouldCreateRenderer(Node*) const;
00049 virtual RenderObject* createRenderer(RenderArena* arena, RenderStyle* style);
00050
00051 protected:
00052 virtual const SVGElement* contextElement() const { return this; }
00053
00054 private:
00055 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired, bool, ExternalResourcesRequired, externalResourcesRequired)
00056 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href)
00057
00058 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, X, x)
00059 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, Y, y)
00060 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, Width, width)
00061 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, Height, height)
00062 };
00063
00064 }
00065
00066 #endif // ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT)
00067 #endif