summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/SinkDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/loader/SinkDocument.cpp')
-rw-r--r--WebCore/loader/SinkDocument.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/WebCore/loader/SinkDocument.cpp b/WebCore/loader/SinkDocument.cpp
index e149981..fb0ab94 100644
--- a/WebCore/loader/SinkDocument.cpp
+++ b/WebCore/loader/SinkDocument.cpp
@@ -30,6 +30,18 @@
namespace WebCore {
+class SinkDocumentParser : public RawDataDocumentParser {
+public:
+ SinkDocumentParser(SinkDocument* document)
+ : RawDataDocumentParser(document)
+ {
+ }
+
+private:
+ // Ignore all data.
+ virtual void appendBytes(DocumentWriter*, const char*, int, bool) { }
+};
+
SinkDocument::SinkDocument(Frame* frame, const KURL& url)
: HTMLDocument(frame, url)
{
@@ -38,9 +50,7 @@ SinkDocument::SinkDocument(Frame* frame, const KURL& url)
DocumentParser* SinkDocument::createParser()
{
- // The basic RawDataDocumentParser does nothing with the data
- // which is sufficient for our purposes here.
- return new RawDataDocumentParser(this);
+ return new SinkDocumentParser(this);
}
} // namespace WebCore