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

Side by Side Diff: Source/core/html/CollectionIndexCache.h

Issue 412533002: Remove unnecessary includes from collection / nodelist classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef CollectionIndexCache_h 32 #ifndef CollectionIndexCache_h
33 #define CollectionIndexCache_h 33 #define CollectionIndexCache_h
34 34
35 #include "core/dom/Element.h"
36
37 namespace blink { 35 namespace blink {
38 36
39 template <typename Collection, typename NodeType> 37 template <typename Collection, typename NodeType>
40 class CollectionIndexCache { 38 class CollectionIndexCache {
41 DISALLOW_ALLOCATION(); 39 DISALLOW_ALLOCATION();
42 public: 40 public:
43 CollectionIndexCache(); 41 CollectionIndexCache();
44 42
45 bool isEmpty(const Collection& collection) 43 bool isEmpty(const Collection& collection)
46 { 44 {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 setCachedNodeCount(currentIndex + 1); 197 setCachedNodeCount(currentIndex + 1);
200 return 0; 198 return 0;
201 } 199 }
202 setCachedNode(currentNode, currentIndex); 200 setCachedNode(currentNode, currentIndex);
203 return currentNode; 201 return currentNode;
204 } 202 }
205 203
206 } // namespace blink 204 } // namespace blink
207 205
208 #endif // CollectionIndexCache_h 206 #endif // CollectionIndexCache_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698