Commit f03df1ae authored by thatcher's avatar thatcher

Reviewed by Darin.

        <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected

        Consider the container of the selection range for deletion before asking enclosingNodeOfType().

        * editing/DeleteButtonController.cpp:
        (WebCore::enclosingDeletableElement):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1de7c5bb
2006-11-15 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
<rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
Consider the container of the selection range for deletion before asking enclosingNodeOfType().
* editing/DeleteButtonController.cpp:
(WebCore::enclosingDeletableElement):
2006-11-16 Rob Buis <buis@kde.org>
Reviewed by hyatt.
......@@ -115,6 +115,12 @@ static HTMLElement* enclosingDeletableElement(const Selection& selection)
if (!container->isContentEditable())
return 0;
// enclosingNodeOfType only looks at ancestor nodes, we also consider the container for deletion
if (isDeletableElement(container)) {
ASSERT(container->isHTMLElement());
return static_cast<HTMLElement*>(container);
}
Node* element = enclosingNodeOfType(container, &isDeletableElement);
if (!element)
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment