Index: Source/core/editing/htmlediting.cpp |
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp |
index 721a3afc75e61b9ac4dc4b994cbc2d844ae3aaa5..3faeed6e46c30807b7e881d7145071ed34270150 100644 |
--- a/Source/core/editing/htmlediting.cpp |
+++ b/Source/core/editing/htmlediting.cpp |
@@ -1163,8 +1163,7 @@ VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope) |
// Call this function to determine whether a node is visibly fit inside selectedRange |
bool isNodeVisiblyContainedWithin(Node& node, const Range& selectedRange) |
{ |
- // If the node is inside the range, then it surely is contained within |
- if (selectedRange.compareNode(&node, IGNORE_EXCEPTION) == Range::NODE_INSIDE) |
+ if (selectedRange.isNodeFullyContained(node, IGNORE_EXCEPTION)) |
return true; |
bool startIsVisuallySame = visiblePositionBeforeNode(node) == VisiblePosition(selectedRange.startPosition()); |