if (RefPtr<Node> nodeToSplitTo = nodeToSplitToAvoidPastingIntoInlineNodesWithStyle(insertionPos)) {
if (insertionPos.containerNode() != nodeToSplitTo->parentNode()) {
Node* splitStart = insertionPos.computeNodeAfterPosition();
+#if ENABLE(ENABLE_TIZEN_CONTENT_EDITABLE_BACKSPACE)
+ if (splitStart) {
+ nodeToSplitTo = splitTreeToNode(splitStart, nodeToSplitTo->parentNode()).get();
+ insertionPos = positionInParentBeforeNode(nodeToSplitTo.get());
+ }
+#else
if (!splitStart)
splitStart = insertionPos.containerNode();
nodeToSplitTo = splitTreeToNode(splitStart, nodeToSplitTo->parentNode()).get();
-#if !ENABLE(ENABLE_TIZEN_CONTENT_EDITABLE_BACKSPACE)
- insertionPos = positionInParentBeforeNode(nodeToSplitTo.get());
+ insertionPos = positionInParentBeforeNode(nodeToSplitTo.get());
#endif
}
}