| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 HTMLCollection::~HTMLCollection() | 62 HTMLCollection::~HTMLCollection() |
| 63 { | 63 { |
| 64 if (m_ownsInfo) | 64 if (m_ownsInfo) |
| 65 delete m_info; | 65 delete m_info; |
| 66 } | 66 } |
| 67 | 67 |
| 68 void HTMLCollection::resetCollectionInfo() const | 68 void HTMLCollection::resetCollectionInfo() const |
| 69 { | 69 { |
| 70 unsigned docversion = static_cast<HTMLDocument*>(m_base->document())->domTre
eVersion(); | 70 uint64_t docversion = static_cast<HTMLDocument*>(m_base->document())->domTre
eVersion(); |
| 71 | 71 |
| 72 if (!m_info) { | 72 if (!m_info) { |
| 73 m_info = new CollectionCache; | 73 m_info = new CollectionCache; |
| 74 m_ownsInfo = true; | 74 m_ownsInfo = true; |
| 75 m_info->version = docversion; | 75 m_info->version = docversion; |
| 76 return; | 76 return; |
| 77 } | 77 } |
| 78 | 78 |
| 79 if (m_info->version != docversion) { | 79 if (m_info->version != docversion) { |
| 80 m_info->reset(); | 80 m_info->reset(); |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 398 |
| 399 return 0; | 399 return 0; |
| 400 } | 400 } |
| 401 | 401 |
| 402 PassRefPtr<NodeList> HTMLCollection::tags(const String& name) | 402 PassRefPtr<NodeList> HTMLCollection::tags(const String& name) |
| 403 { | 403 { |
| 404 return m_base->getElementsByTagName(name); | 404 return m_base->getElementsByTagName(name); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace WebCore | 407 } // namespace WebCore |
| OLD | NEW |