30
30
class JSComment : public JSCharacterData {
31
31
typedef JSCharacterData Base;
33
JSComment(PassRefPtr<JSC::Structure>, PassRefPtr<Comment>);
33
JSComment(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Comment>);
34
34
static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
35
35
virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
36
virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
36
37
virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
37
38
static const JSC::ClassInfo s_info;
39
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValuePtr prototype)
40
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
41
42
return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
44
static JSC::JSValuePtr getConstructor(JSC::ExecState*);
45
static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
48
49
class JSCommentPrototype : public JSC::JSObject {
50
typedef JSC::JSObject Base;
50
52
static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
51
53
virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
52
54
static const JSC::ClassInfo s_info;
53
JSCommentPrototype(PassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
55
JSCommentPrototype(NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
58
JSC::JSValuePtr jsCommentConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
60
JSC::JSValue jsCommentConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
60
62
} // namespace WebCore