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

Side by Side Diff: Source/core/dom/ClassCollection.h

Issue 633573004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/core/dom/ChildNodeList.h ('k') | Source/core/dom/ClientRect.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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) 3 * Copyright (C) 2007 David Smith (catfish.man@gmail.com)
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 18 matching lines...) Expand all
29 29
30 #ifndef ClassCollection_h 30 #ifndef ClassCollection_h
31 #define ClassCollection_h 31 #define ClassCollection_h
32 32
33 #include "core/dom/Element.h" 33 #include "core/dom/Element.h"
34 #include "core/dom/SpaceSplitString.h" 34 #include "core/dom/SpaceSplitString.h"
35 #include "core/html/HTMLCollection.h" 35 #include "core/html/HTMLCollection.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class ClassCollection FINAL : public HTMLCollection { 39 class ClassCollection final : public HTMLCollection {
40 public: 40 public:
41 // classNames argument is an AtomicString because it is common for Elements to share the same class names. 41 // classNames argument is an AtomicString because it is common for Elements to share the same class names.
42 // It is also used to construct a SpaceSplitString (m_classNames) and its co nstructor requires an AtomicString. 42 // It is also used to construct a SpaceSplitString (m_classNames) and its co nstructor requires an AtomicString.
43 static PassRefPtrWillBeRawPtr<ClassCollection> create(ContainerNode& rootNod e, CollectionType type, const AtomicString& classNames) 43 static PassRefPtrWillBeRawPtr<ClassCollection> create(ContainerNode& rootNod e, CollectionType type, const AtomicString& classNames)
44 { 44 {
45 ASSERT_UNUSED(type, type == ClassCollectionType); 45 ASSERT_UNUSED(type, type == ClassCollectionType);
46 return adoptRefWillBeNoop(new ClassCollection(rootNode, classNames)); 46 return adoptRefWillBeNoop(new ClassCollection(rootNode, classNames));
47 } 47 }
48 48
49 virtual ~ClassCollection(); 49 virtual ~ClassCollection();
(...skipping 14 matching lines...) Expand all
64 if (!testElement.hasClass()) 64 if (!testElement.hasClass())
65 return false; 65 return false;
66 if (!m_classNames.size()) 66 if (!m_classNames.size())
67 return false; 67 return false;
68 return testElement.classNames().containsAll(m_classNames); 68 return testElement.classNames().containsAll(m_classNames);
69 } 69 }
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // ClassCollection_h 73 #endif // ClassCollection_h
OLDNEW
« no previous file with comments | « Source/core/dom/ChildNodeList.h ('k') | Source/core/dom/ClientRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698