From 6882a04fb36642862b11efe514251d32070c3d65 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 25 Aug 2016 19:20:41 +0300 Subject: Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443) Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev --- Source/WebCore/html/HTMLHtmlElement.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Source/WebCore/html/HTMLHtmlElement.cpp') diff --git a/Source/WebCore/html/HTMLHtmlElement.cpp b/Source/WebCore/html/HTMLHtmlElement.cpp index fa6284d4e..c7f517aec 100644 --- a/Source/WebCore/html/HTMLHtmlElement.cpp +++ b/Source/WebCore/html/HTMLHtmlElement.cpp @@ -36,20 +36,20 @@ namespace WebCore { using namespace HTMLNames; -HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document* document) +HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document& document) : HTMLElement(tagName, document) { ASSERT(hasTagName(htmlTag)); } -PassRefPtr HTMLHtmlElement::create(Document* document) +Ref HTMLHtmlElement::create(Document& document) { - return adoptRef(new HTMLHtmlElement(htmlTag, document)); + return adoptRef(*new HTMLHtmlElement(htmlTag, document)); } -PassRefPtr HTMLHtmlElement::create(const QualifiedName& tagName, Document* document) +Ref HTMLHtmlElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new HTMLHtmlElement(tagName, document)); + return adoptRef(*new HTMLHtmlElement(tagName, document)); } bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const @@ -60,21 +60,21 @@ bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const void HTMLHtmlElement::insertedByParser() { // When parsing a fragment, its dummy document has a null parser. - if (!document()->parser() || !document()->parser()->documentWasLoadedAsPartOfNavigation()) + if (!document().parser() || !document().parser()->documentWasLoadedAsPartOfNavigation()) return; - if (!document()->frame()) + if (!document().frame()) return; - DocumentLoader* documentLoader = document()->frame()->loader()->documentLoader(); + DocumentLoader* documentLoader = document().frame()->loader().documentLoader(); if (!documentLoader) return; - const AtomicString& manifest = getAttribute(manifestAttr); + const AtomicString& manifest = fastGetAttribute(manifestAttr); if (manifest.isEmpty()) documentLoader->applicationCacheHost()->selectCacheWithoutManifest(); else - documentLoader->applicationCacheHost()->selectCacheWithManifest(document()->completeURL(manifest)); + documentLoader->applicationCacheHost()->selectCacheWithManifest(document().completeURL(manifest)); } } -- cgit v1.2.1