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

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

Issue 69823002: Move ownership of the TextResourceDecoder to DecodedDataDocumentParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved DocumentEncodingData to its own header Created 7 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
Index: Source/core/xml/XSLTProcessor.cpp
diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp
index ea47745c011a3fe095db6dad1495f14ffd87a231..691fcb0f0ec964bd4ce00f6a3fd7cdb61ca75a8c 100644
--- a/Source/core/xml/XSLTProcessor.cpp
+++ b/Source/core/xml/XSLTProcessor.cpp
@@ -24,6 +24,7 @@
#include "core/xml/XSLTProcessor.h"
#include "core/dom/DOMImplementation.h"
+#include "core/dom/DocumentEncodingData.h"
#include "core/dom/DocumentFragment.h"
#include "core/editing/markup.h"
#include "core/frame/ContentSecurityPolicy.h"
@@ -90,7 +91,9 @@ PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc
result = DOMWindow::createDocument(sourceMIMEType, init, forceXHTML);
}
- result->setEncoding(sourceEncoding.isEmpty() ? UTF8Encoding() : WTF::TextEncoding(sourceEncoding));
+ DocumentEncodingData data;
+ data.encoding = sourceEncoding.isEmpty() ? UTF8Encoding() : WTF::TextEncoding(sourceEncoding);
+ result->setEncodingData(data);
result->setContent(documentSource);
return result.release();

Powered by Google App Engine
This is Rietveld 408576698