| Index: Source/core/editing/htmlediting.cpp
|
| diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
|
| index 5931c1f11ca9c7c35860319ffbe13b96b61f26ee..391e5ab312e7194d5160663ecdbaf8d012234451 100644
|
| --- a/Source/core/editing/htmlediting.cpp
|
| +++ b/Source/core/editing/htmlediting.cpp
|
| @@ -1102,8 +1102,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.isNodeFullySelected(node))
|
| return true;
|
|
|
| bool startIsVisuallySame = visiblePositionBeforeNode(node) == VisiblePosition(selectedRange.startPosition());
|
|
|