2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef JSSVGElement_h
22 #define JSSVGElement_h
26 #include "JSDOMBinding.h"
27 #include "JSElement.h"
28 #include "SVGElement.h"
29 #include <runtime/JSObject.h>
33 class JSSVGElement : public JSElement {
35 typedef JSElement Base;
36 static JSSVGElement* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> impl)
38 JSSVGElement* ptr = new (JSC::allocateCell<JSSVGElement>(globalObject->globalData().heap)) JSSVGElement(structure, globalObject, impl);
39 ptr->finishCreation(globalObject->globalData());
43 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
44 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
45 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
46 static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
47 static const JSC::ClassInfo s_info;
49 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
51 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
54 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
55 SVGElement* impl() const
57 return static_cast<SVGElement*>(Base::impl());
60 JSSVGElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGElement>);
61 void finishCreation(JSC::JSGlobalData&);
62 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
65 SVGElement* toSVGElement(JSC::JSValue);
67 class JSSVGElementPrototype : public JSC::JSNonFinalObject {
69 typedef JSC::JSNonFinalObject Base;
70 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
71 static JSSVGElementPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
73 JSSVGElementPrototype* ptr = new (JSC::allocateCell<JSSVGElementPrototype>(globalData.heap)) JSSVGElementPrototype(globalData, globalObject, structure);
74 ptr->finishCreation(globalData);
78 static const JSC::ClassInfo s_info;
79 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
81 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
85 JSSVGElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
87 static const unsigned StructureFlags = Base::StructureFlags;
90 class JSSVGElementConstructor : public DOMConstructorObject {
92 JSSVGElementConstructor(JSC::Structure*, JSDOMGlobalObject*);
93 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
96 typedef DOMConstructorObject Base;
97 static JSSVGElementConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
99 JSSVGElementConstructor* ptr = new (JSC::allocateCell<JSSVGElementConstructor>(*exec->heap())) JSSVGElementConstructor(structure, globalObject);
100 ptr->finishCreation(exec, globalObject);
104 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
105 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
106 static const JSC::ClassInfo s_info;
107 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
109 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
112 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
117 JSC::JSValue jsSVGElementId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
118 void setJSSVGElementId(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
119 JSC::JSValue jsSVGElementXmlbase(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
120 void setJSSVGElementXmlbase(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
121 JSC::JSValue jsSVGElementOwnerSVGElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
122 JSC::JSValue jsSVGElementViewportElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 JSC::JSValue jsSVGElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
125 } // namespace WebCore
127 #endif // ENABLE(SVG)