summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/UnlinkCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/UnlinkCommand.cpp')
-rw-r--r--WebCore/editing/UnlinkCommand.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/WebCore/editing/UnlinkCommand.cpp b/WebCore/editing/UnlinkCommand.cpp
index 7234a3b..0518838 100644
--- a/WebCore/editing/UnlinkCommand.cpp
+++ b/WebCore/editing/UnlinkCommand.cpp
@@ -38,10 +38,8 @@ UnlinkCommand::UnlinkCommand(Document* document)
void UnlinkCommand::doApply()
{
// FIXME: If a caret is inside a link, we should remove it, but currently we don't.
- if (!endingSelection().isRange())
+ if (!endingSelection().isNonOrphanedRange())
return;
-
- pushPartiallySelectedAnchorElementsDown();
removeStyledElement(HTMLAnchorElement::create(document()));
}