Chromium Code Reviews| Index: Source/core/editing/ReplaceSelectionCommand.cpp |
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
| index 5552606ea490aa14e0dd73881ecdb3b2caa03785..2c8df795520c9ce0a157f132b2ed4a1e9a7b9c56 100644 |
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp |
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
| @@ -638,6 +638,9 @@ void ReplaceSelectionCommand::moveNodeOutOfAncestor(PassRefPtr<Node> prpNode, Pa |
| RefPtr<Node> node = prpNode; |
| RefPtr<Node> ancestor = prpAncestor; |
| + if (ancestor->parentNode()->attached() && !ancestor->parentNode()->rendererIsEditable()) |
|
rniwa-cr
2013/06/11 06:32:00
Why are we checking attached()? That doesn't make
yosin_UTC9
2013/06/11 08:07:42
You're right.
Remove attached() check.
|
| + return; |
| + |
| VisiblePosition positionAtEndOfNode = lastPositionInOrAfterNode(node.get()); |
| VisiblePosition lastPositionInParagraph = lastPositionInNode(ancestor.get()); |
| if (positionAtEndOfNode == lastPositionInParagraph) { |