12013-02-28 Eric Seidel <eric@webkit.org>
2
3 Threaded HTML Parser has an extra copy of every byte from the network
4 https://bugs.webkit.org/show_bug.cgi?id=111135
5
6 Reviewed by NOBODY (OOPS!).
7
8 Every LayoutTest executes this code in threaded parsing mode.
9
10 * dom/DecodedDataDocumentParser.cpp:
11 (WebCore::DecodedDataDocumentParser::appendBytes):
12 - Pass ownership of the decoded string to the parser.
13 (WebCore::DecodedDataDocumentParser::flush):
14 - Same.
15 * dom/DecodedDataDocumentParser.h:
16 (DecodedDataDocumentParser):
17 * dom/Document.cpp:
18 (WebCore::Document::setContent):
19 * dom/DocumentParser.h:
20 (DocumentParser):
21 * dom/RawDataDocumentParser.h:
22 (WebCore::RawDataDocumentParser::append):
23 * html/FTPDirectoryDocument.cpp:
24 (FTPDirectoryDocumentParser):
25 (WebCore::FTPDirectoryDocumentParser::append):
26 * html/parser/HTMLDocumentParser.cpp:
27 (WebCore::HTMLDocumentParser::append):
28 * html/parser/HTMLDocumentParser.h:
29 (HTMLDocumentParser):
30 * html/parser/HTMLViewSourceParser.cpp:
31 (WebCore::HTMLViewSourceParser::append):
32 * html/parser/HTMLViewSourceParser.h:
33 (HTMLViewSourceParser):
34 * html/parser/TextDocumentParser.cpp:
35 (WebCore::TextDocumentParser::append):
36 * html/parser/TextDocumentParser.h:
37 (TextDocumentParser):
38 * loader/DocumentWriter.cpp:
39 (WebCore::DocumentWriter::replaceDocument):
40 * xml/parser/XMLDocumentParser.cpp:
41 (WebCore::XMLDocumentParser::append):
42 * xml/parser/XMLDocumentParser.h:
43 (XMLDocumentParser):
44 * xml/parser/XMLDocumentParserLibxml2.cpp:
45 (WebCore::XMLDocumentParser::resumeParsing):
46