Index: Source/core/editing/InsertLineBreakCommand.cpp |
diff --git a/Source/core/editing/InsertLineBreakCommand.cpp b/Source/core/editing/InsertLineBreakCommand.cpp |
index dc10873ba4a19da0da5ad8fb8db7d52c2cc14df2..2c3c86644721668012ddab73814c0ebc8e21ef01 100644 |
--- a/Source/core/editing/InsertLineBreakCommand.cpp |
+++ b/Source/core/editing/InsertLineBreakCommand.cpp |
@@ -81,7 +81,7 @@ void InsertLineBreakCommand::doApply() |
pos = positionOutsideTabSpan(pos); |
- RefPtr<Node> nodeToInsert; |
+ RefPtrWillBeRawPtr<Node> nodeToInsert = nullptr; |
if (shouldUseBreakElement(pos)) |
nodeToInsert = createBreakElement(document()); |
else |
@@ -141,7 +141,7 @@ void InsertLineBreakCommand::doApply() |
// Handle the case where there is a typing style. |
- RefPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle(); |
+ RefPtrWillBeRawPtr<EditingStyle> typingStyle = document().frame()->selection().typingStyle(); |
if (typingStyle && !typingStyle->isEmpty()) { |
// Apply the typing style to the inserted line break, so that if the selection |