| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 * deleting the provisions above and replace them with the notice and | 47 * deleting the provisions above and replace them with the notice and |
| 48 * other provisions required by the MPL or the GPL, as the case may be. | 48 * other provisions required by the MPL or the GPL, as the case may be. |
| 49 * If you do not delete the provisions above, a recipient may use your | 49 * If you do not delete the provisions above, a recipient may use your |
| 50 * version of this file under any of the LGPL, the MPL or the GPL. | 50 * version of this file under any of the LGPL, the MPL or the GPL. |
| 51 */ | 51 */ |
| 52 | 52 |
| 53 #include "core/html/HTMLDocument.h" | 53 #include "core/html/HTMLDocument.h" |
| 54 | 54 |
| 55 #include "bindings/core/v8/ScriptController.h" | 55 #include "bindings/core/v8/ScriptController.h" |
| 56 #include "core/HTMLNames.h" | 56 #include "core/HTMLNames.h" |
| 57 #include "core/fetch/MemoryCache.h" |
| 57 #include "core/frame/LocalFrame.h" | 58 #include "core/frame/LocalFrame.h" |
| 58 #include "core/html/HTMLBodyElement.h" | 59 #include "core/html/HTMLBodyElement.h" |
| 59 | 60 |
| 60 namespace blink { | 61 namespace blink { |
| 61 | 62 |
| 62 using namespace HTMLNames; | 63 using namespace HTMLNames; |
| 63 | 64 |
| 64 HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags e
xtendedDocumentClasses) | 65 HTMLDocument::HTMLDocument(const DocumentInit& initializer, DocumentClassFlags e
xtendedDocumentClasses) |
| 65 : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) | 66 : Document(initializer, HTMLDocumentClass | extendedDocumentClasses) |
| 66 { | 67 { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void HTMLDocument::addExtraNamedItem(const AtomicString& name) | 191 void HTMLDocument::addExtraNamedItem(const AtomicString& name) |
| 191 { | 192 { |
| 192 addItemToMap(m_extraNamedItemCounts, name); | 193 addItemToMap(m_extraNamedItemCounts, name); |
| 193 } | 194 } |
| 194 | 195 |
| 195 void HTMLDocument::removeExtraNamedItem(const AtomicString& name) | 196 void HTMLDocument::removeExtraNamedItem(const AtomicString& name) |
| 196 { | 197 { |
| 197 removeItemFromMap(m_extraNamedItemCounts, name); | 198 removeItemFromMap(m_extraNamedItemCounts, name); |
| 198 } | 199 } |
| 199 | 200 |
| 201 void HTMLDocument::captureEvents() |
| 202 { |
| 203 // Temporary hack to call pruneAll directly. |
| 204 memoryCache()->pruneAll(); |
| 205 } |
| 206 |
| 200 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |