[Webkit-unassigned] [Bug 78193] Inserting a paragraph between quoted lines in editing/deleting/delete-4038408-fix.html doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 30 13:35:47 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=78193





--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org>  2012-03-30 13:35:46 PST ---
(From update of attachment 134857)
View in context: https://bugs.webkit.org/attachment.cgi?id=134857&action=review

> Source/WebCore/ChangeLog:4
> +        Inserting a paragraph between quoted lines in editing/deleting/delete-4038408-fix.html doesn't work

Bug title should appear before the bug url.

> Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp:232
>              // 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 (Node* highestBlockquote = highestEnclosingNodeOfType(canonicalPos, &isMailBlockquote))
> -                startBlock = static_cast<Element*>(highestBlockquote);
> +            if (m_pasteBlockqutoeIntoUnquotedArea)
> +                if (Node* highestBlockquote = highestEnclosingNodeOfType(canonicalPos, &isMailBlockquote))
> +                    startBlock = static_cast<Element*>(highestBlockquote);

This looks like a hack, and we're adding more hack on top of it. Can we adjust position in ReplaceSelectionCommand to avoid this hack altogether?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list