summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLHtmlElement.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-30 12:48:17 +0200
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-30 12:48:17 +0200
commit881da28418d380042aa95a97f0cbd42560a64f7c (patch)
treea794dff3274695e99c651902dde93d934ea7a5af /Source/WebCore/html/HTMLHtmlElement.cpp
parent7e104c57a70fdf551bb3d22a5d637cdcbc69dbea (diff)
parent0fcedcd17cc00d3dd44c718b3cb36c1033319671 (diff)
downloadqtwebkit-881da28418d380042aa95a97f0cbd42560a64f7c.tar.gz
Merge 'wip/next' into dev
Change-Id: Iff9ee5e23bb326c4371ec8ed81d56f2f05d680e9
Diffstat (limited to 'Source/WebCore/html/HTMLHtmlElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLHtmlElement.cpp20
1 files changed, 10 insertions, 10 deletions
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> HTMLHtmlElement::create(Document* document)
+Ref<HTMLHtmlElement> HTMLHtmlElement::create(Document& document)
{
- return adoptRef(new HTMLHtmlElement(htmlTag, document));
+ return adoptRef(*new HTMLHtmlElement(htmlTag, document));
}
-PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(const QualifiedName& tagName, Document* document)
+Ref<HTMLHtmlElement> 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));
}
}