Index: Source/core/editing/UnlinkCommand.cpp |
diff --git a/Source/core/editing/UnlinkCommand.cpp b/Source/core/editing/UnlinkCommand.cpp |
index 0341fb5622017c2fdc934f162719753e99d17e43..6b48a3800a3d970721c5284ded2c080c63d683b4 100644 |
--- a/Source/core/editing/UnlinkCommand.cpp |
+++ b/Source/core/editing/UnlinkCommand.cpp |
@@ -30,7 +30,7 @@ |
namespace WebCore { |
-UnlinkCommand::UnlinkCommand(Document* document) |
+UnlinkCommand::UnlinkCommand(Document& document) |
: CompositeEditCommand(document) |
{ |
} |
@@ -41,7 +41,7 @@ void UnlinkCommand::doApply() |
if (!endingSelection().isNonOrphanedRange()) |
return; |
- removeStyledElement(HTMLAnchorElement::create(document())); |
+ removeStyledElement(HTMLAnchorElement::create(&document())); |
} |
} |