Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 99b0b522e794bf450ac0c7c6bea8732400af017f..58647b1018def31885d511f5a29f2c1161aa18ba 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -51,6 +51,7 @@ |
#include "core/editing/VisibleUnits.h" |
#include "core/editing/htmlediting.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/html/HTMLBRElement.h" |
#include "core/html/HTMLBodyElement.h" |
#include "core/html/HTMLElement.h" |
#include "core/html/HTMLSpanElement.h" |
@@ -854,7 +855,7 @@ PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromText(Range* context, |
if (shouldPreserveNewline(*context)) { |
fragment->appendChild(document.createTextNode(string)); |
if (string.endsWith('\n')) { |
- RefPtrWillBeRawPtr<Element> element = createBreakElement(document); |
+ RefPtrWillBeRawPtr<HTMLBRElement> element = createBreakElement(document); |
element->setAttribute(classAttr, AppleInterchangeNewline); |
fragment->appendChild(element.release()); |
} |