| Index: Source/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| index 73ead8cbff608831865bdf50e0ba2df579f5f5ed..497725d39b57fc208c5bf0fed2d5f8b1f4cd2da3 100644
|
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -49,6 +49,7 @@
|
| #include "core/events/BeforeTextInsertedEvent.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/UseCounter.h"
|
| +#include "core/html/HTMLBRElement.h"
|
| #include "core/html/HTMLElement.h"
|
| #include "core/html/HTMLInputElement.h"
|
| #include "core/rendering/RenderObject.h"
|
| @@ -835,7 +836,7 @@ void ReplaceSelectionCommand::mergeEndIfNeeded()
|
| // Merging forward could result in deleting the destination anchor node.
|
| // To avoid this, we add a placeholder node before the start of the paragraph.
|
| if (endOfParagraph(startOfParagraphToMove) == destination) {
|
| - RefPtrWillBeRawPtr<Node> placeholder = createBreakElement(document());
|
| + RefPtrWillBeRawPtr<HTMLBRElement> placeholder = createBreakElement(document());
|
| insertNodeBefore(placeholder, startOfParagraphToMove.deepEquivalent().deprecatedNode());
|
| destination = VisiblePosition(positionBeforeNode(placeholder.get()));
|
| }
|
|
|