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

Unified Diff: Source/core/xml/XMLSerializer.cpp

Issue 184273003: Allow overriding the serialization rules in MarkupAccumulator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased onto split out CLs. Created 6 years, 9 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/MarkupAccumulator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLSerializer.cpp
diff --git a/Source/core/xml/XMLSerializer.cpp b/Source/core/xml/XMLSerializer.cpp
index a2e3187e0bed864fa8452e26df1bc485cde62354..11e9cd628717a101f06e7bd456ae5a3bb4032825 100644
--- a/Source/core/xml/XMLSerializer.cpp
+++ b/Source/core/xml/XMLSerializer.cpp
@@ -24,7 +24,7 @@
#include "bindings/v8/ExceptionState.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
-#include "core/editing/markup.h"
+#include "core/editing/MarkupAccumulator.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -36,7 +36,8 @@ String XMLSerializer::serializeToString(Node* node, ExceptionState& exceptionSta
return String();
}
- return createMarkup(node);
+ MarkupAccumulator accumulator(0, DoNotResolveURLs, 0, ForcedXML);
+ return accumulator.serializeNodes(*node, IncludeNode);
}
} // namespace WebCore
« no previous file with comments | « Source/core/editing/MarkupAccumulator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698