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

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

Issue 1180623004: Refactoring: Move MarkupFormatter::totalLength to StyledMarkupAccumulator.cpp as an annonymous func… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/MarkupFormatter.h ('k') | Source/core/editing/StyledMarkupAccumulator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/MarkupFormatter.cpp
diff --git a/Source/core/editing/MarkupFormatter.cpp b/Source/core/editing/MarkupFormatter.cpp
index eede58c029cb3a5ea3d99ca45a44ca8717bfdb33..7c3cc45c8eb654824e7627b3c7828d1277b4dab0 100644
--- a/Source/core/editing/MarkupFormatter.cpp
+++ b/Source/core/editing/MarkupFormatter.cpp
@@ -97,14 +97,6 @@ void MarkupFormatter::appendCharactersReplacingEntities(StringBuilder& result, c
appendCharactersReplacingEntitiesInternal(result, source.characters16() + offset, length, entityMaps, WTF_ARRAY_LENGTH(entityMaps), entityMask);
}
-size_t MarkupFormatter::totalLength(const Vector<String>& strings)
-{
- size_t length = 0;
- for (const auto& string : strings)
- length += string.length();
- return length;
-}
-
MarkupFormatter::MarkupFormatter(EAbsoluteURLs resolveUrlsMethod, SerializationType serializationType)
: m_resolveURLsMethod(resolveUrlsMethod)
, m_serializationType(serializationType)
« no previous file with comments | « Source/core/editing/MarkupFormatter.h ('k') | Source/core/editing/StyledMarkupAccumulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698