#ifndef HTMLDocument_h
#define HTMLDocument_h
#include "CachedResourceClient.h"
#include "Document.h"
namespace WebCore {
class FrameView;
class HTMLElement;
class HTMLDocument : public Document, public CachedResourceClient {
public:
HTMLDocument(DOMImplementation*, Frame*);
virtual ~HTMLDocument();
virtual bool isHTMLDocument() const { return true; }
String lastModified() const;
String cookie() const;
void setCookie(const String&);
void setBody(HTMLElement*, ExceptionCode&);
int width();
int height();
String dir();
void setDir(const String&);
String designMode() const;
void setDesignMode(const String&);
String bgColor();
void setBgColor(const String&);
String fgColor();
void setFgColor(const String&);
String alinkColor();
void setAlinkColor(const String&);
String linkColor();
void setLinkColor(const String&);
String vlinkColor();
void setVlinkColor(const String&);
void captureEvents();
void releaseEvents();
virtual Tokenizer* createTokenizer();
virtual bool childAllowed(Node*);
virtual PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&);
virtual void determineParseMode(const String&);
void addNamedItem(const String& name);
void removeNamedItem(const String& name);
bool hasNamedItem(const String& name);
void addDocExtraNamedItem(const String& name);
void removeDocExtraNamedItem(const String& name);
bool hasDocExtraNamedItem(const String& name);
typedef HashMap<StringImpl*, int> NameCountMap;
private:
NameCountMap namedItemCounts;
NameCountMap docExtraNamedItemCounts;
};
}
#endif