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

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

Issue 1174873002: Refactoring: Remove StyledMarkupAccumulator::appendString and add appendNewLine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 f71a0b714b9d72c82bceda1d5c31c0733d10e329..6908b053ed87103d93617d93140d73a9148da23c 100644
--- a/Source/core/editing/StyledMarkupAccumulator.cpp
+++ b/Source/core/editing/StyledMarkupAccumulator.cpp
@@ -49,11 +49,6 @@ StyledMarkupAccumulator::StyledMarkupAccumulator(EAbsoluteURLs shouldResolveURLs
{
}
-void StyledMarkupAccumulator::appendString(const String& str)
-{
- m_result.append(str);
-}
-
void StyledMarkupAccumulator::appendStartTag(Node& node)
{
appendStartMarkup(m_result, node);
@@ -202,7 +197,7 @@ void StyledMarkupAccumulator::wrapWithStyleNode(StylePropertySet* style)
openTag.appendLiteral("\">");
m_reversedPrecedingMarkup.append(openTag.toString());
- appendString("</div>");
+ m_result.append("</div>");
}
String StyledMarkupAccumulator::takeResults()
@@ -260,4 +255,10 @@ void StyledMarkupAccumulator::pushMarkup(const String& str)
m_reversedPrecedingMarkup.append(str);
}
+void StyledMarkupAccumulator::appendInterchangeNewline()
+{
+ DEFINE_STATIC_LOCAL(const String, interchangeNewlineString, ("<br class=\"" AppleInterchangeNewline "\">"));
+ m_result.append(interchangeNewlineString);
+}
+
} // namespace blink
« 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