Index: Source/core/editing/ApplyBlockElementCommand.cpp |
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp |
index 8467d47eb5034aceaf460169541d880aab429945..cf782cbd3db95e8961b4400037ba809abe60b654 100644 |
--- a/Source/core/editing/ApplyBlockElementCommand.cpp |
+++ b/Source/core/editing/ApplyBlockElementCommand.cpp |
@@ -85,9 +85,9 @@ void ApplyBlockElementCommand::doApply() |
VisiblePosition endOfSelection = selection.visibleEnd(); |
ASSERT(!startOfSelection.isNull()); |
ASSERT(!endOfSelection.isNull()); |
- RefPtr<ContainerNode> startScope; |
+ RefPtrWillBeRawPtr<ContainerNode> startScope = nullptr; |
int startIndex = indexForVisiblePosition(startOfSelection, startScope); |
- RefPtr<ContainerNode> endScope; |
+ RefPtrWillBeRawPtr<ContainerNode> endScope = nullptr; |
int endIndex = indexForVisiblePosition(endOfSelection, endScope); |
formatSelection(startOfSelection, endOfSelection); |