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

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

Issue 752153002: Sync XMLSerializer IDL with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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/xml/XMLSerializer.h ('k') | Source/core/xml/XMLSerializer.idl » ('j') | 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 b39aa329b9da424bc0c871a5dec4f04912158a10..ea52ebd432dd01cdb5f9cf23f7453f612fe962f7 100644
--- a/Source/core/xml/XMLSerializer.cpp
+++ b/Source/core/xml/XMLSerializer.cpp
@@ -21,22 +21,16 @@
#include "config.h"
#include "core/xml/XMLSerializer.h"
-#include "bindings/core/v8/ExceptionState.h"
-#include "core/dom/ExceptionCode.h"
#include "core/editing/MarkupAccumulator.h"
#include "wtf/text/WTFString.h"
namespace blink {
-String XMLSerializer::serializeToString(Node* node, ExceptionState& exceptionState)
+String XMLSerializer::serializeToString(Node* root)
{
- if (!node) {
- exceptionState.throwTypeError("Invalid node value.");
- return String();
- }
-
+ ASSERT(root);
MarkupAccumulator accumulator(0, DoNotResolveURLs, nullptr, ForcedXML);
- return accumulator.serializeNodes(*node, IncludeNode);
+ return accumulator.serializeNodes(*root, IncludeNode);
}
} // namespace blink
« no previous file with comments | « Source/core/xml/XMLSerializer.h ('k') | Source/core/xml/XMLSerializer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698