| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2006, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2010 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "core/dom/DocumentParser.h" | 29 #include "core/dom/DocumentParser.h" |
| 30 #include "core/loader/DocumentLoader.h" | 30 #include "core/loader/DocumentLoader.h" |
| 31 #include "core/loader/FrameLoader.h" | 31 #include "core/loader/FrameLoader.h" |
| 32 #include "core/loader/appcache/ApplicationCacheHost.h" | 32 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 33 #include "core/page/Frame.h" | 33 #include "core/page/Frame.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 using namespace HTMLNames; | 37 using namespace HTMLNames; |
| 38 | 38 |
| 39 HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document* documen
t) | 39 HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document& documen
t) |
| 40 : HTMLElement(tagName, document) | 40 : HTMLElement(tagName, document) |
| 41 { | 41 { |
| 42 ASSERT(hasTagName(htmlTag)); | 42 ASSERT(hasTagName(htmlTag)); |
| 43 ScriptWrappable::init(this); | 43 ScriptWrappable::init(this); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(Document* document) | 46 PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(Document& document) |
| 47 { | 47 { |
| 48 return adoptRef(new HTMLHtmlElement(htmlTag, document)); | 48 return adoptRef(new HTMLHtmlElement(htmlTag, document)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(const QualifiedName& tagName
, Document* document) | 51 PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(const QualifiedName& tagName
, Document& document) |
| 52 { | 52 { |
| 53 return adoptRef(new HTMLHtmlElement(tagName, document)); | 53 return adoptRef(new HTMLHtmlElement(tagName, document)); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const | 56 bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const |
| 57 { | 57 { |
| 58 return attribute.name() == manifestAttr || HTMLElement::isURLAttribute(attri
bute); | 58 return attribute.name() == manifestAttr || HTMLElement::isURLAttribute(attri
bute); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void HTMLHtmlElement::insertedByParser() | 61 void HTMLHtmlElement::insertedByParser() |
| (...skipping 10 matching lines...) Expand all Loading... |
| 72 return; | 72 return; |
| 73 | 73 |
| 74 const AtomicString& manifest = getAttribute(manifestAttr); | 74 const AtomicString& manifest = getAttribute(manifestAttr); |
| 75 if (manifest.isEmpty()) | 75 if (manifest.isEmpty()) |
| 76 documentLoader->applicationCacheHost()->selectCacheWithoutManifest(); | 76 documentLoader->applicationCacheHost()->selectCacheWithoutManifest(); |
| 77 else | 77 else |
| 78 documentLoader->applicationCacheHost()->selectCacheWithManifest(document
().completeURL(manifest)); | 78 documentLoader->applicationCacheHost()->selectCacheWithManifest(document
().completeURL(manifest)); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } | 81 } |
| OLD | NEW |