Bug 1247796. Use keyboardFocusIndicatorColor for ActiveBorder system color keyword...
[gecko.git] / parser / html / nsHtml5Speculation.cpp
blobf9b5fa38fcc2423077b654a40faab0469d43bd04
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsHtml5Speculation.h"
7 using namespace mozilla;
9 nsHtml5Speculation::nsHtml5Speculation(nsHtml5OwningUTF16Buffer* aBuffer,
10 int32_t aStart,
11 int32_t aStartLineNumber,
12 nsAHtml5TreeBuilderState* aSnapshot)
13 : mBuffer(aBuffer)
14 , mStart(aStart)
15 , mStartLineNumber(aStartLineNumber)
16 , mSnapshot(aSnapshot)
18 MOZ_COUNT_CTOR(nsHtml5Speculation);
21 nsHtml5Speculation::~nsHtml5Speculation()
23 MOZ_COUNT_DTOR(nsHtml5Speculation);
26 void
27 nsHtml5Speculation::MoveOpsFrom(nsTArray<nsHtml5TreeOperation>& aOpQueue)
29 mOpQueue.AppendElements(Move(aOpQueue));
32 void
33 nsHtml5Speculation::FlushToSink(nsAHtml5TreeOpSink* aSink)
35 aSink->MoveOpsFrom(mOpQueue);