30
31
class StyleSheetList;
32
class JSStyleSheetList : public DOMObject {
33
typedef DOMObject Base;
33
class JSStyleSheetList : public DOMObjectWithGlobalPointer {
34
typedef DOMObjectWithGlobalPointer Base;
35
JSStyleSheetList(PassRefPtr<JSC::Structure>, PassRefPtr<StyleSheetList>);
36
JSStyleSheetList(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<StyleSheetList>);
36
37
virtual ~JSStyleSheetList();
37
38
static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
38
39
virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
40
virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
39
41
virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
40
42
virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
41
43
static const JSC::ClassInfo s_info;
43
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValuePtr prototype)
45
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
45
47
return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
48
virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
49
static JSC::JSValuePtr getConstructor(JSC::ExecState*);
50
virtual void markChildren(JSC::MarkStack&);
52
virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
53
static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
50
54
StyleSheetList* impl() const { return m_impl.get(); }
53
57
RefPtr<StyleSheetList> m_impl;
54
static JSC::JSValuePtr indexGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
58
static JSC::JSValue indexGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
56
60
static bool canGetItemsForName(JSC::ExecState*, StyleSheetList*, const JSC::Identifier&);
57
static JSC::JSValuePtr nameGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
61
static JSC::JSValue nameGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
60
JSC::JSValuePtr toJS(JSC::ExecState*, StyleSheetList*);
61
StyleSheetList* toStyleSheetList(JSC::JSValuePtr);
64
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, StyleSheetList*);
65
StyleSheetList* toStyleSheetList(JSC::JSValue);
63
67
class JSStyleSheetListPrototype : public JSC::JSObject {
68
typedef JSC::JSObject Base;
65
70
static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
66
71
virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
67
72
static const JSC::ClassInfo s_info;
68
73
virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
69
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValuePtr prototype)
74
virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
75
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
71
77
return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
73
JSStyleSheetListPrototype(PassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
79
JSStyleSheetListPrototype(NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
78
JSC::JSValuePtr jsStyleSheetListPrototypeFunctionItem(JSC::ExecState*, JSC::JSObject*, JSC::JSValuePtr, const JSC::ArgList&);
84
JSC::JSValue JSC_HOST_CALL jsStyleSheetListPrototypeFunctionItem(JSC::ExecState*, JSC::JSObject*, JSC::JSValue, const JSC::ArgList&);
81
JSC::JSValuePtr jsStyleSheetListLength(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
82
JSC::JSValuePtr jsStyleSheetListConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
87
JSC::JSValue jsStyleSheetListLength(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
88
JSC::JSValue jsStyleSheetListConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
84
90
} // namespace WebCore