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

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

Issue 1153363005: Refactoring: Remove unused parameters from StyledMarkupAccumulator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 a4496f6efe65f489376710645441bc4c0fea2117..b709958151ff239959451b41a02fee2e90a6e585 100644
--- a/Source/core/editing/StyledMarkupAccumulator.cpp
+++ b/Source/core/editing/StyledMarkupAccumulator.cpp
@@ -65,10 +65,10 @@ void StyledMarkupAccumulator::appendString(const String& str)
m_accumulator.appendString(str);
}
-void StyledMarkupAccumulator::appendStartTag(Node& node, Namespaces* namespaces)
+void StyledMarkupAccumulator::appendStartTag(Node& node)
{
StringBuilder out;
- appendStartMarkup(out, node, namespaces);
+ appendStartMarkup(out, node);
appendString(out.toString());
}
@@ -79,17 +79,17 @@ void StyledMarkupAccumulator::appendEndTag(const Element& element)
appendString(out.toString());
}
-void StyledMarkupAccumulator::appendStartMarkup(StringBuilder& result, Node& node, Namespaces* namespaces)
+void StyledMarkupAccumulator::appendStartMarkup(StringBuilder& result, Node& node)
{
switch (node.nodeType()) {
case Node::TEXT_NODE:
appendText(result, toText(node));
break;
case Node::ELEMENT_NODE:
- appendElement(result, toElement(node), namespaces);
+ appendElement(result, toElement(node));
break;
default:
- m_accumulator.appendStartMarkup(result, node, namespaces);
+ m_accumulator.appendStartMarkup(result, node, nullptr);
break;
}
}
@@ -141,7 +141,7 @@ void StyledMarkupAccumulator::appendText(StringBuilder& out, Text& text)
out.append(styleNodeCloseTag(false));
}
-void StyledMarkupAccumulator::appendElement(StringBuilder& out, Element& element, Namespaces*)
+void StyledMarkupAccumulator::appendElement(StringBuilder& out, Element& element)
{
appendElement(out, element, false, DoesFullySelectNode);
}
« 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