Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: Source/WebCore/html/HTMLCollection.cpp

Issue 6709024: Merge 80797 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/html/FormAssociatedElement.cpp ('k') | Source/WebCore/xml/XPathResult.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/html/FormAssociatedElement.cpp ('k') | Source/WebCore/xml/XPathResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698