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"
15 #include "mozilla/dom/Document.h"
17 class nsDocElementCreatedNotificationRunner
: public mozilla::Runnable
{
19 explicit nsDocElementCreatedNotificationRunner(mozilla::dom::Document
* aDoc
)
20 : mozilla::Runnable("nsDocElementCreatedNotificationRunner"),
23 NS_IMETHOD
Run() override
{
24 nsContentSink::NotifyDocElementCreated(mDoc
);
28 RefPtr
<mozilla::dom::Document
> mDoc
;
31 #endif /* nsDocElementCreatedNotificationRunner_h */