Index: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp |
index 84e35f314397c61076f23bb5addfb53eeaed1f7f..a577a52f6414b9d0c5de99e4a4e21098116afa51 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp |
@@ -180,8 +180,8 @@ void DeleteSelectionCommand::initializePositionData() |
m_upstreamEnd = mostBackwardCaretPosition(end); |
m_downstreamEnd = mostForwardCaretPosition(end); |
- m_startRoot = editableRootElementForPosition(start); |
- m_endRoot = editableRootElementForPosition(end); |
+ m_startRoot = rootEditableElementOf(start); |
+ m_endRoot = rootEditableElementOf(end); |
m_startTableRow = toHTMLTableRowElement(enclosingNodeOfType(start, &isHTMLTableRowElement)); |
m_endTableRow = toHTMLTableRowElement(enclosingNodeOfType(end, &isHTMLTableRowElement)); |