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

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

Issue 1179133002: Refactoring: Remove the first parameter |result| from StyledMarkupAccumulator::appendStartMarkup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yosin's review Created 5 years, 6 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
« no previous file with comments | « Source/core/editing/StyledMarkupAccumulator.h ('k') | Source/core/editing/StyledMarkupSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/StyledMarkupAccumulator.cpp
diff --git a/Source/core/editing/StyledMarkupAccumulator.cpp b/Source/core/editing/StyledMarkupAccumulator.cpp
index ffde0af9d68036eb8bfc89cf800c456c47bd84e2..66a58e71a528c78a881424db553b44f07b2f7889 100644
--- a/Source/core/editing/StyledMarkupAccumulator.cpp
+++ b/Source/core/editing/StyledMarkupAccumulator.cpp
@@ -63,7 +63,7 @@ StyledMarkupAccumulator::StyledMarkupAccumulator(EAbsoluteURLs shouldResolveURLs
void StyledMarkupAccumulator::appendStartTag(Node& node)
{
- appendStartMarkup(m_result, node);
+ appendStartMarkup(node);
}
void StyledMarkupAccumulator::appendEndTag(const Element& element)
@@ -71,7 +71,7 @@ void StyledMarkupAccumulator::appendEndTag(const Element& element)
appendEndMarkup(m_result, element);
}
-void StyledMarkupAccumulator::appendStartMarkup(StringBuilder& result, Node& node)
+void StyledMarkupAccumulator::appendStartMarkup(Node& node)
{
switch (node.nodeType()) {
case Node::TEXT_NODE:
@@ -84,7 +84,7 @@ void StyledMarkupAccumulator::appendStartMarkup(StringBuilder& result, Node& nod
break;
}
default:
- m_formatter.appendStartMarkup(result, node, nullptr);
+ m_formatter.appendStartMarkup(m_result, node, nullptr);
break;
}
}
« no previous file with comments | « Source/core/editing/StyledMarkupAccumulator.h ('k') | Source/core/editing/StyledMarkupSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698