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

Unified Diff: Source/core/dom/SelectorQuery.cpp

Issue 126633004: Update DOM classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ScriptableDocumentParser.h ('k') | Source/core/dom/TagNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SelectorQuery.cpp
diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp
index 8f9f4a4e6d79c1b5d2b9188a81afc4b595d38392..a47be8845b080336a0179e67ca289ebfdbba98ae 100644
--- a/Source/core/dom/SelectorQuery.cpp
+++ b/Source/core/dom/SelectorQuery.cpp
@@ -45,13 +45,13 @@ public:
virtual Node* next() = 0;
};
-class SingleNodeList : public SimpleNodeList {
+class SingleNodeList FINAL : public SimpleNodeList {
public:
explicit SingleNodeList(Node* rootNode) : m_currentNode(rootNode) { }
- bool isEmpty() const { return !m_currentNode; }
+ bool isEmpty() const OVERRIDE { return !m_currentNode; }
- Node* next()
+ Node* next() OVERRIDE
{
Node* current = m_currentNode;
m_currentNode = 0;
@@ -62,16 +62,16 @@ private:
Node* m_currentNode;
};
-class ClassRootNodeList : public SimpleNodeList {
+class ClassRootNodeList FINAL : public SimpleNodeList {
public:
ClassRootNodeList(Node& rootNode, const AtomicString& className)
: m_className(className)
, m_rootNode(rootNode)
, m_currentElement(nextInternal(ElementTraversal::firstWithin(m_rootNode))) { }
- bool isEmpty() const { return !m_currentElement; }
+ bool isEmpty() const OVERRIDE { return !m_currentElement; }
- Node* next()
+ Node* next() OVERRIDE
{
Node* current = m_currentElement;
ASSERT(current);
@@ -94,16 +94,16 @@ private:
Element* m_currentElement;
};
-class ClassElementList : public SimpleNodeList {
+class ClassElementList FINAL : public SimpleNodeList {
public:
ClassElementList(Node& rootNode, const AtomicString& className)
: m_className(className)
, m_rootNode(rootNode)
, m_currentElement(nextInternal(ElementTraversal::firstWithin(rootNode))) { }
- bool isEmpty() const { return !m_currentElement; }
+ bool isEmpty() const OVERRIDE { return !m_currentElement; }
- Node* next()
+ Node* next() OVERRIDE
{
Node* current = m_currentElement;
ASSERT(current);
« no previous file with comments | « Source/core/dom/ScriptableDocumentParser.h ('k') | Source/core/dom/TagNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698