diff options
Diffstat (limited to 'Source/WebCore/dom/NodeWithIndex.h')
-rw-r--r-- | Source/WebCore/dom/NodeWithIndex.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WebCore/dom/NodeWithIndex.h b/Source/WebCore/dom/NodeWithIndex.h index 077b64047..6a30bda80 100644 --- a/Source/WebCore/dom/NodeWithIndex.h +++ b/Source/WebCore/dom/NodeWithIndex.h @@ -23,8 +23,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef NodeWithIndex_h -#define NodeWithIndex_h +#pragma once #include "Node.h" @@ -46,10 +45,10 @@ public: int index() const { if (!m_haveIndex) { - m_index = m_node->nodeIndex(); + m_index = m_node->computeNodeIndex(); m_haveIndex = true; } - ASSERT(m_index == static_cast<int>(m_node->nodeIndex())); + ASSERT(m_index == static_cast<int>(m_node->computeNodeIndex())); return m_index; } @@ -59,6 +58,4 @@ private: mutable int m_index; }; -} - -#endif +} // namespace WebCore |