DOMImplementation.h [plain text]
#pragma once
#include "ExceptionOr.h"
#include "XMLDocument.h"
namespace WebCore {
class DOMImplementation final : public ScriptWrappable {
WTF_MAKE_ISO_ALLOCATED(DOMImplementation);
public:
explicit DOMImplementation(Document&);
void ref() { m_document.ref(); }
void deref() { m_document.deref(); }
Document& document() { return m_document; }
WEBCORE_EXPORT ExceptionOr<Ref<DocumentType>> createDocumentType(const String& qualifiedName, const String& publicId, const String& systemId);
WEBCORE_EXPORT ExceptionOr<Ref<XMLDocument>> createDocument(const String& namespaceURI, const String& qualifiedName, DocumentType*);
WEBCORE_EXPORT Ref<HTMLDocument> createHTMLDocument(const String& title);
static bool hasFeature() { return true; }
WEBCORE_EXPORT static Ref<CSSStyleSheet> createCSSStyleSheet(const String& title, const String& media);
static Ref<Document> createDocument(const String& contentType, Frame*, const Settings&, const URL&);
private:
Document& m_document;
};
}