diff options
Diffstat (limited to 'WebCore/html/HTMLDocument.cpp')
-rw-r--r-- | WebCore/html/HTMLDocument.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/WebCore/html/HTMLDocument.cpp b/WebCore/html/HTMLDocument.cpp index 4e26c02..5e11ad2 100644 --- a/WebCore/html/HTMLDocument.cpp +++ b/WebCore/html/HTMLDocument.cpp @@ -282,25 +282,20 @@ void HTMLDocument::releaseEvents() { } -DocumentParser* HTMLDocument::createParser() +PassRefPtr<DocumentParser> HTMLDocument::createParser() { bool reportErrors = false; #if ENABLE(INSPECTOR) if (Page* page = this->page()) - reportErrors = page->inspectorController()->windowVisible(); + reportErrors = page->inspectorController()->hasFrontend(); #endif - return new HTMLDocumentParser(this, reportErrors); + return HTMLDocumentParser::create(this, reportErrors); } // -------------------------------------------------------------------------- // not part of the DOM // -------------------------------------------------------------------------- -bool HTMLDocument::childAllowed(Node *newChild) -{ - return newChild->hasTagName(htmlTag) || newChild->isCommentNode() || (newChild->nodeType() == DOCUMENT_TYPE_NODE && !doctype()); -} - PassRefPtr<Element> HTMLDocument::createElement(const AtomicString& name, ExceptionCode& ec) { if (!isValidName(name)) { |