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); |