Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / base / nsDocElementCreatedNotificationRunner.h
blob948dd18c567e7418a5e514ef2b63e457551e6672
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsDocElementCreatedNotificationRunner_h
8 #define nsDocElementCreatedNotificationRunner_h
10 #include "mozilla/Attributes.h"
11 #include "nsThreadUtils.h" /* nsRunnable */
13 #include "nsContentSink.h"
14 #include "nsCOMPtr.h"
15 #include "mozilla/dom/Document.h"
17 class nsDocElementCreatedNotificationRunner : public mozilla::Runnable {
18 public:
19 explicit nsDocElementCreatedNotificationRunner(mozilla::dom::Document* aDoc)
20 : mozilla::Runnable("nsDocElementCreatedNotificationRunner"),
21 mDoc(aDoc) {}
23 NS_IMETHOD Run() override {
24 nsContentSink::NotifyDocElementCreated(mDoc);
25 return NS_OK;
28 RefPtr<mozilla::dom::Document> mDoc;
31 #endif /* nsDocElementCreatedNotificationRunner_h */