Index: Source/core/page/DOMSelection.cpp |
diff --git a/Source/core/page/DOMSelection.cpp b/Source/core/page/DOMSelection.cpp |
index ed91368b54e33510b8c38708c047c5e0a8308bde..5e34937743ca3cecffebfda72d6ddc9818624505 100644 |
--- a/Source/core/page/DOMSelection.cpp |
+++ b/Source/core/page/DOMSelection.cpp |
@@ -454,10 +454,10 @@ bool DOMSelection::containsNode(const Node* n, bool allowPartial) const |
if (!n || m_frame->document() != n->document() || selection->isNone()) |
return false; |
- ContainerNode* parentNode = n->parentNode(); |
unsigned nodeIndex = n->nodeIndex(); |
RefPtr<Range> selectedRange = selection->selection().toNormalizedRange(); |
+ ContainerNode* parentNode = n->parentNode(); |
if (!parentNode) |
return false; |