Index: Source/core/loader/DocumentWriter.cpp |
diff --git a/Source/core/loader/DocumentWriter.cpp b/Source/core/loader/DocumentWriter.cpp |
index a187c73339b49f2def4a33708229a953eef52453..311794929f64b1c59aebdb8d2cf424cea07bb312 100644 |
--- a/Source/core/loader/DocumentWriter.cpp |
+++ b/Source/core/loader/DocumentWriter.cpp |
@@ -79,11 +79,8 @@ void DocumentWriter::appendReplacingData(const String& source) |
// FIXME: This should call DocumentParser::appendBytes instead of append |
// to support RawDataDocumentParsers. |
- if (DocumentParser* parser = m_document->parser()) { |
- // Because the parser is pinned to the main thread we don't need to worry about |
- // passing ownership of the source string. |
- parser->append(source.impl()); |
- } |
+ if (DocumentParser* parser = m_document->parser()) |
+ parser->append(source); |
} |
void DocumentWriter::addData(const char* bytes, size_t length) |