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

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

Issue 1161463008: Refactoring: Have StyledMarkupAccumulator use MarkupFormatter (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
Index: Source/core/editing/StyledMarkupAccumulator.h
diff --git a/Source/core/editing/StyledMarkupAccumulator.h b/Source/core/editing/StyledMarkupAccumulator.h
index 29a22b0f213f59610bd7fdd81442befa28f4c581..e9e46a2c14bca5787988de87196b6e852ed76a72 100644
--- a/Source/core/editing/StyledMarkupAccumulator.h
+++ b/Source/core/editing/StyledMarkupAccumulator.h
@@ -30,7 +30,7 @@
#define StyledMarkupAccumulator_h
#include "core/editing/EditingStyle.h"
-#include "core/editing/MarkupAccumulator.h"
+#include "core/editing/MarkupFormatter.h"
#include "core/editing/TextOffset.h"
#include "wtf/Forward.h"
@@ -80,7 +80,7 @@ private:
void appendEndMarkup(StringBuilder&, const Element&);
void appendStyleNodeOpenTag(StringBuilder&, StylePropertySet*, bool isBlock = false);
- MarkupAccumulator m_accumulator;
+ MarkupFormatter m_formatter;
const TextOffset m_start;
const TextOffset m_end;
const RefPtrWillBeMember<Document> m_document;
@@ -88,6 +88,7 @@ private:
const ConvertBlocksToInlines m_convertBlocksToInlines;
RawPtrWillBeMember<Node> m_highestNodeToBeSerialized;
RefPtrWillBeMember<EditingStyle> m_wrappingStyle;
+ StringBuilder m_result;
Vector<String> m_reversedPrecedingMarkup;
};

Powered by Google App Engine
This is Rietveld 408576698