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 21 matching lines...) Expand all Loading... |
32 #include "core/loader/FrameLoader.h" | 32 #include "core/loader/FrameLoader.h" |
33 #include "core/loader/appcache/ApplicationCacheHost.h" | 33 #include "core/loader/appcache/ApplicationCacheHost.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 using namespace HTMLNames; | 37 using namespace HTMLNames; |
38 | 38 |
39 inline HTMLHtmlElement::HTMLHtmlElement(Document& document) | 39 inline HTMLHtmlElement::HTMLHtmlElement(Document& document) |
40 : HTMLElement(htmlTag, document) | 40 : HTMLElement(htmlTag, document) |
41 { | 41 { |
42 ScriptWrappable::init(this); | |
43 } | 42 } |
44 | 43 |
45 DEFINE_NODE_FACTORY(HTMLHtmlElement) | 44 DEFINE_NODE_FACTORY(HTMLHtmlElement) |
46 | 45 |
47 bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const | 46 bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const |
48 { | 47 { |
49 return attribute.name() == manifestAttr || HTMLElement::isURLAttribute(attri
bute); | 48 return attribute.name() == manifestAttr || HTMLElement::isURLAttribute(attri
bute); |
50 } | 49 } |
51 | 50 |
52 void HTMLHtmlElement::insertedByParser() | 51 void HTMLHtmlElement::insertedByParser() |
(...skipping 10 matching lines...) Expand all Loading... |
63 return; | 62 return; |
64 | 63 |
65 const AtomicString& manifest = fastGetAttribute(manifestAttr); | 64 const AtomicString& manifest = fastGetAttribute(manifestAttr); |
66 if (manifest.isEmpty()) | 65 if (manifest.isEmpty()) |
67 documentLoader->applicationCacheHost()->selectCacheWithoutManifest(); | 66 documentLoader->applicationCacheHost()->selectCacheWithoutManifest(); |
68 else | 67 else |
69 documentLoader->applicationCacheHost()->selectCacheWithManifest(document
().completeURL(manifest)); | 68 documentLoader->applicationCacheHost()->selectCacheWithManifest(document
().completeURL(manifest)); |
70 } | 69 } |
71 | 70 |
72 } | 71 } |
OLD | NEW |