| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 void HTMLHtmlElement::insertedByParser() | 61 void HTMLHtmlElement::insertedByParser() |
| 62 { | 62 { |
| 63 // When parsing a fragment, its dummy document has a null parser. | 63 // When parsing a fragment, its dummy document has a null parser. |
| 64 if (!document().parser() || !document().parser()->documentWasLoadedAsPartOfN
avigation()) | 64 if (!document().parser() || !document().parser()->documentWasLoadedAsPartOfN
avigation()) |
| 65 return; | 65 return; |
| 66 | 66 |
| 67 if (!document().frame()) | 67 if (!document().frame()) |
| 68 return; | 68 return; |
| 69 | 69 |
| 70 DocumentLoader* documentLoader = document().frame()->loader()->documentLoade
r(); | 70 DocumentLoader* documentLoader = document().frame()->loader().documentLoader
(); |
| 71 if (!documentLoader) | 71 if (!documentLoader) |
| 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 |