diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/RawDataDocumentParser.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/RawDataDocumentParser.h')
-rw-r--r-- | Source/WebCore/dom/RawDataDocumentParser.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/dom/RawDataDocumentParser.h b/Source/WebCore/dom/RawDataDocumentParser.h index d62d18042..094ec87f6 100644 --- a/Source/WebCore/dom/RawDataDocumentParser.h +++ b/Source/WebCore/dom/RawDataDocumentParser.h @@ -23,8 +23,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RawDataDocumentParser_h -#define RawDataDocumentParser_h +#pragma once #include "DocumentParser.h" @@ -37,31 +36,29 @@ protected: { } - virtual void finish() + void finish() override { if (!isStopped()) document()->finishedParsing(); } private: - virtual void flush(DocumentWriter& writer) + void flush(DocumentWriter& writer) override { // Make sure appendBytes is called at least once. appendBytes(writer, 0, 0); } - virtual void insert(const SegmentedString&) + void insert(SegmentedString&&) override { // <https://bugs.webkit.org/show_bug.cgi?id=25397>: JS code can always call document.write, we need to handle it. ASSERT_NOT_REACHED(); } - virtual void append(PassRefPtr<StringImpl>) + void append(RefPtr<StringImpl>&&) override { ASSERT_NOT_REACHED(); } }; -}; - -#endif // RawDataDocumentParser_h +} // namespace WebCore |