| Index: Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| diff --git a/Source/core/editing/InsertParagraphSeparatorCommand.cpp b/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| index f5a1d5b148503d871cd48f5db5a44bcbd4da9ace..e2cbdcffc5e04364ce3b74cbeb721f65ab5c22bd 100644
|
| --- a/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| +++ b/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/editing/htmlediting.h"
|
| #include "core/html/HTMLBRElement.h"
|
| #include "core/html/HTMLElement.h"
|
| +#include "core/html/HTMLQuoteElement.h"
|
| #include "core/rendering/RenderObject.h"
|
| #include "core/rendering/RenderText.h"
|
|
|
| @@ -230,8 +231,8 @@ void InsertParagraphSeparatorCommand::doApply()
|
| // We can get here if we pasted a copied portion of a blockquote with a newline at the end and are trying to paste it
|
| // into an unquoted area. We then don't want the newline within the blockquote or else it will also be quoted.
|
| if (m_pasteBlockqutoeIntoUnquotedArea) {
|
| - if (Node* highestBlockquote = highestEnclosingNodeOfType(canonicalPos, &isMailBlockquote))
|
| - startBlock = toElement(highestBlockquote);
|
| + if (HTMLQuoteElement* highestBlockquote = toHTMLQuoteElement(highestEnclosingNodeOfType(canonicalPos, &isMailHTMLBlockquoteElement)))
|
| + startBlock = highestBlockquote;
|
| }
|
|
|
| if (listChild && listChild != startBlock) {
|
|
|