From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- parser/html/nsHtml5Speculation.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 parser/html/nsHtml5Speculation.cpp (limited to 'parser/html/nsHtml5Speculation.cpp') diff --git a/parser/html/nsHtml5Speculation.cpp b/parser/html/nsHtml5Speculation.cpp new file mode 100644 index 000000000..f9b5fa38f --- /dev/null +++ b/parser/html/nsHtml5Speculation.cpp @@ -0,0 +1,36 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsHtml5Speculation.h" + +using namespace mozilla; + +nsHtml5Speculation::nsHtml5Speculation(nsHtml5OwningUTF16Buffer* aBuffer, + int32_t aStart, + int32_t aStartLineNumber, + nsAHtml5TreeBuilderState* aSnapshot) + : mBuffer(aBuffer) + , mStart(aStart) + , mStartLineNumber(aStartLineNumber) + , mSnapshot(aSnapshot) +{ + MOZ_COUNT_CTOR(nsHtml5Speculation); +} + +nsHtml5Speculation::~nsHtml5Speculation() +{ + MOZ_COUNT_DTOR(nsHtml5Speculation); +} + +void +nsHtml5Speculation::MoveOpsFrom(nsTArray& aOpQueue) +{ + mOpQueue.AppendElements(Move(aOpQueue)); +} + +void +nsHtml5Speculation::FlushToSink(nsAHtml5TreeOpSink* aSink) +{ + aSink->MoveOpsFrom(mOpQueue); +} -- cgit v1.2.3