#ifndef kjs_html_h
#define kjs_html_h
#include "kjs_dom.h"
namespace WebCore {
class Document;
class HTMLCollection;
class HTMLElement;
class JSHTMLElement;
class ImageConstructorImp : public KJS::DOMObject {
public:
ImageConstructorImp(KJS::ExecState*, Document*);
virtual bool implementsConstruct() const { return true; }
virtual KJS::JSObject* construct(KJS::ExecState*, const KJS::List&);
private:
RefPtr<Document> m_doc;
};
KJS::JSValue* runtimeObjectGetter(KJS::ExecState*, KJS::JSObject*, const KJS::Identifier&, const KJS::PropertySlot&);
KJS::JSValue* runtimeObjectPropertyGetter(KJS::ExecState*, KJS::JSObject*, const KJS::Identifier&, const KJS::PropertySlot&);
bool runtimeObjectCustomGetOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&, JSHTMLElement*, HTMLElement*);
bool runtimeObjectCustomPut(KJS::ExecState*, const KJS::Identifier&, KJS::JSValue*, int attr, HTMLElement*);
bool runtimeObjectImplementsCall(HTMLElement*);
KJS::JSValue* runtimeObjectCallAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&, HTMLElement*);
}
#endif // kjs_html_h