Index: Source/core/dom/SelectorQuery.cpp |
diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp |
index a47be8845b080336a0179e67ca289ebfdbba98ae..9334ca52f0f986e2c164c37396d4cebb1c56e24e 100644 |
--- a/Source/core/dom/SelectorQuery.cpp |
+++ b/Source/core/dom/SelectorQuery.cpp |
@@ -49,9 +49,9 @@ class SingleNodeList FINAL : public SimpleNodeList { |
public: |
explicit SingleNodeList(Node* rootNode) : m_currentNode(rootNode) { } |
- bool isEmpty() const OVERRIDE { return !m_currentNode; } |
+ virtual bool isEmpty() const OVERRIDE { return !m_currentNode; } |
- Node* next() OVERRIDE |
+ virtual Node* next() OVERRIDE |
{ |
Node* current = m_currentNode; |
m_currentNode = 0; |
@@ -69,9 +69,9 @@ public: |
, m_rootNode(rootNode) |
, m_currentElement(nextInternal(ElementTraversal::firstWithin(m_rootNode))) { } |
- bool isEmpty() const OVERRIDE { return !m_currentElement; } |
+ virtual bool isEmpty() const OVERRIDE { return !m_currentElement; } |
- Node* next() OVERRIDE |
+ virtual Node* next() OVERRIDE |
{ |
Node* current = m_currentElement; |
ASSERT(current); |
@@ -101,9 +101,9 @@ public: |
, m_rootNode(rootNode) |
, m_currentElement(nextInternal(ElementTraversal::firstWithin(rootNode))) { } |
- bool isEmpty() const OVERRIDE { return !m_currentElement; } |
+ virtual bool isEmpty() const OVERRIDE { return !m_currentElement; } |
- Node* next() OVERRIDE |
+ virtual Node* next() OVERRIDE |
{ |
Node* current = m_currentElement; |
ASSERT(current); |