| Index: Source/core/editing/htmlediting.cpp
|
| diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
|
| index 6c00bb5d9a38062fb59b1a66e24aa76eac83c386..59f981ae3845a715a7cecdfb867b7f5fca61a820 100644
|
| --- a/Source/core/editing/htmlediting.cpp
|
| +++ b/Source/core/editing/htmlediting.cpp
|
| @@ -680,30 +680,6 @@ Node* enclosingListChild(Node *node)
|
| return 0;
|
| }
|
|
|
| -static HTMLElement* embeddedSublist(Node* listItem)
|
| -{
|
| - // Check the DOM so that we'll find collapsed sublists without renderers.
|
| - for (Node* n = listItem->firstChild(); n; n = n->nextSibling()) {
|
| - if (isListElement(n))
|
| - return toHTMLElement(n);
|
| - }
|
| -
|
| - return 0;
|
| -}
|
| -
|
| -static Node* appendedSublist(Node* listItem)
|
| -{
|
| - // Check the DOM so that we'll find collapsed sublists without renderers.
|
| - for (Node* n = listItem->nextSibling(); n; n = n->nextSibling()) {
|
| - if (isListElement(n))
|
| - return toHTMLElement(n);
|
| - if (isListItem(listItem))
|
| - return 0;
|
| - }
|
| -
|
| - return 0;
|
| -}
|
| -
|
| // FIXME: This method should not need to call isStartOfParagraph/isEndOfParagraph
|
| Node* enclosingEmptyListItem(const VisiblePosition& visiblePos)
|
| {
|
| @@ -718,9 +694,6 @@ Node* enclosingEmptyListItem(const VisiblePosition& visiblePos)
|
| if (firstInListChild != visiblePos || lastInListChild != visiblePos)
|
| return 0;
|
|
|
| - if (embeddedSublist(listChildNode) || appendedSublist(listChildNode))
|
| - return 0;
|
| -
|
| return listChildNode;
|
| }
|
|
|
|
|