[Webkit-unassigned] [Bug 82690] Pressing enter on blank line after bullet deletes entire bulleted line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 4 09:33:38 PDT 2012


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





--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2012-04-04 09:33:39 PST ---
(From update of attachment 135594)
View in context: https://bugs.webkit.org/attachment.cgi?id=135594&action=review

> Source/WebCore/editing/CompositeEditCommand.cpp:1278
> -        if (emptyListItem->renderer()->previousSibling())
> +        if (emptyListItemRenderer->previousSibling())

Why can't we just call isListItem on the previous node?

> Source/WebCore/editing/CompositeEditCommand.cpp:1290
> -        removeNode(emptyListItem->renderer()->previousSibling() ? emptyListItem : listNode);
> +        removeNode(emptyListItemRenderer->previousSibling() ? emptyListItem : listNode);

Ditto.

-- 
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