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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCollection.h

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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
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, 2011, 2012 Apple Inc. All 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All
5 * rights reserved. 5 * rights reserved.
6 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2014 Samsung Electronics. 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 24 matching lines...) Expand all
35 35
36 // A simple iterator based on an index number in an HTMLCollection. 36 // A simple iterator based on an index number in an HTMLCollection.
37 // This doesn't work if the HTMLCollection is updated during iteration. 37 // This doesn't work if the HTMLCollection is updated during iteration.
38 template <class CollectionType, class NodeType> 38 template <class CollectionType, class NodeType>
39 class HTMLCollectionIterator { 39 class HTMLCollectionIterator {
40 STACK_ALLOCATED(); 40 STACK_ALLOCATED();
41 41
42 public: 42 public:
43 explicit HTMLCollectionIterator(const CollectionType* collection) 43 explicit HTMLCollectionIterator(const CollectionType* collection)
44 : m_collection(collection) {} 44 : m_collection(collection) {}
45
46 /* DO NOT SUBMIT - merge conflict marker:
47 * Please spell |item| below, not |Item|. */
45 NodeType* operator*() { return m_collection->item(m_index); } 48 NodeType* operator*() { return m_collection->item(m_index); }
46 49
47 void operator++() { 50 void operator++() {
48 if (m_index < m_collection->length()) 51 if (m_index < m_collection->length())
49 ++m_index; 52 ++m_index;
50 } 53 }
51 54
52 bool operator!=(const HTMLCollectionIterator& other) const { 55 bool operator!=(const HTMLCollectionIterator& other) const {
53 return m_collection != other.m_collection || m_index != other.m_index; 56 return m_collection != other.m_collection || m_index != other.m_index;
54 } 57 }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 if (!attrName || 229 if (!attrName ||
227 shouldInvalidateTypeOnAttributeChange(invalidationType(), *attrName)) 230 shouldInvalidateTypeOnAttributeChange(invalidationType(), *attrName))
228 invalidateCache(); 231 invalidateCache();
229 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr) 232 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr)
230 invalidateIdNameCacheMaps(); 233 invalidateIdNameCacheMaps();
231 } 234 }
232 235
233 } // namespace blink 236 } // namespace blink
234 237
235 #endif // HTMLCollection_h 238 #endif // HTMLCollection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.json5 ('k') | third_party/WebKit/Source/core/html/HTMLOptionsCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698