Index: Source/core/editing/BreakBlockquoteCommand.cpp |
diff --git a/Source/core/editing/BreakBlockquoteCommand.cpp b/Source/core/editing/BreakBlockquoteCommand.cpp |
index 0cb60d965281f014c5a46003c6f8f94aa001e88b..02b2eb1bb8e3f863bf2e3ed2b67436e1172790c6 100644 |
--- a/Source/core/editing/BreakBlockquoteCommand.cpp |
+++ b/Source/core/editing/BreakBlockquoteCommand.cpp |
@@ -144,11 +144,11 @@ void BreakBlockquoteCommand::doApply() |
for (size_t i = ancestors.size(); i != 0; --i) { |
RefPtr<Element> clonedChild = ancestors[i - 1]->cloneElementWithoutChildren(); |
// Preserve list item numbering in cloned lists. |
- if (clonedChild->isElementNode() && clonedChild->hasTagName(olTag)) { |
+ if (isHTMLOListElement(*clonedChild)) { |
Node* listChildNode = i > 1 ? ancestors[i - 2].get() : startNode; |
// The first child of the cloned list might not be a list item element, |
// find the first one so that we know where to start numbering. |
- while (listChildNode && !listChildNode->hasTagName(liTag)) |
+ while (listChildNode && !isHTMLLIElement(*listChildNode)) |
listChildNode = listChildNode->nextSibling(); |
if (listChildNode && listChildNode->renderer() && listChildNode->renderer()->isListItem()) |
setNodeAttribute(clonedChild, startAttr, AtomicString::number(toRenderListItem(listChildNode->renderer())->value())); |