| Index: Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
|
| diff --git a/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp b/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
|
| index 64a5254baa7f3ad9d6016326ff3369accc0e5bcc..42232c6562f6eb9e88cf08a103728198491ce626 100644
|
| --- a/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
|
| +++ b/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
|
| @@ -59,10 +59,9 @@ static Element* highestVisuallyEquivalentDivBelowRoot(Element* startBlock)
|
| return curBlock;
|
| }
|
|
|
| -InsertParagraphSeparatorCommand::InsertParagraphSeparatorCommand(Document *document, bool mustUseDefaultParagraphElement, bool pasteBlockqutoeIntoUnquotedArea)
|
| +InsertParagraphSeparatorCommand::InsertParagraphSeparatorCommand(Document *document, bool mustUseDefaultParagraphElement)
|
| : CompositeEditCommand(document)
|
| , m_mustUseDefaultParagraphElement(mustUseDefaultParagraphElement)
|
| - , m_pasteBlockqutoeIntoUnquotedArea(pasteBlockqutoeIntoUnquotedArea)
|
| {
|
| }
|
|
|
| @@ -223,13 +222,6 @@ void InsertParagraphSeparatorCommand::doApply()
|
| }
|
| appendNode(blockToInsert, startBlock);
|
| } else {
|
| - // 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);
|
| - }
|
| -
|
| // Most of the time we want to stay at the nesting level of the startBlock (e.g., when nesting within lists). However,
|
| // for div nodes, this can result in nested div tags that are hard to break out of.
|
| Element* siblingNode = startBlock.get();
|
|
|