summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/RawDataDocumentParser.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/RawDataDocumentParser.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/dom/RawDataDocumentParser.h')
-rw-r--r--Source/WebCore/dom/RawDataDocumentParser.h15
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