Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: Source/core/editing/MarkupAccumulator.cpp

Issue 171773008: Rename childNodeCount() / childNode() methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further renaming for consistency Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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("</");
« no previous file with comments | « Source/core/editing/InsertParagraphSeparatorCommand.cpp ('k') | Source/core/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698