Index: Source/core/editing/MarkupAccumulator.cpp |
diff --git a/Source/core/editing/MarkupAccumulator.cpp b/Source/core/editing/MarkupAccumulator.cpp |
index 044e9ee3854ddeff91ec6e669ac94f926968841f..e4be09ebf947cfa3ca4ce4d09356b2f54273bdbf 100644 |
--- a/Source/core/editing/MarkupAccumulator.cpp |
+++ b/Source/core/editing/MarkupAccumulator.cpp |
@@ -506,7 +506,7 @@ bool MarkupAccumulator::shouldSelfClose(const Node& node) |
{ |
if (node.document().isHTMLDocument()) |
return false; |
- if (node.hasChildNodes()) |
+ if (node.hasChildren()) |
return false; |
if (node.isHTMLElement() && !elementCannotHaveEndTag(node)) |
return false; |
@@ -527,7 +527,7 @@ bool MarkupAccumulator::elementCannotHaveEndTag(const Node& node) |
void MarkupAccumulator::appendEndMarkup(StringBuilder& result, const Node& node) |
{ |
- if (!node.isElementNode() || shouldSelfClose(node) || (!node.hasChildNodes() && elementCannotHaveEndTag(node))) |
+ if (!node.isElementNode() || shouldSelfClose(node) || (!node.hasChildren() && elementCannotHaveEndTag(node))) |
return; |
result.appendLiteral("</"); |