| Index: Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| diff --git a/Source/core/editing/commands/DeleteSelectionCommand.cpp b/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| index 8ef2336f6de00400be7e0936f215f5c67d468f7c..067aeae08e4d52e1881a9eb1fe03a706ffc82175 100644
|
| --- a/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| +++ b/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| @@ -260,8 +260,8 @@ void DeleteSelectionCommand::initializePositionData()
|
| // like the one below, since editing functions should obviously accept editing positions.
|
| // FIXME: Passing false to enclosingNodeOfType tells it that it's OK to return a non-editable
|
| // node. This was done to match existing behavior, but it seems wrong.
|
| - m_startBlock = enclosingNodeOfType(m_downstreamStart.parentAnchoredEquivalent(), &isBlock, CanCrossEditingBoundary);
|
| - m_endBlock = enclosingNodeOfType(m_upstreamEnd.parentAnchoredEquivalent(), &isBlock, CanCrossEditingBoundary);
|
| + m_startBlock = enclosingNodeOfType(m_downstreamStart.parentAnchoredEquivalent(), &isEnclosingBlock, CanCrossEditingBoundary);
|
| + m_endBlock = enclosingNodeOfType(m_upstreamEnd.parentAnchoredEquivalent(), &isEnclosingBlock, CanCrossEditingBoundary);
|
| }
|
|
|
| // We don't want to inherit style from an element which can't have contents.
|
|
|