From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/dom/RawDataDocumentParser.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Source/WebCore/dom/RawDataDocumentParser.h') 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 { // : JS code can always call document.write, we need to handle it. ASSERT_NOT_REACHED(); } - virtual void append(PassRefPtr) + void append(RefPtr&&) override { ASSERT_NOT_REACHED(); } }; -}; - -#endif // RawDataDocumentParser_h +} // namespace WebCore -- cgit v1.2.1