mirror of
https://github.com/mozilla-firefox/firefox.git
synced 2026-06-18 03:11:36 -05:00
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
/* 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/. */
|
|
|
|
#ifndef mozilla_dom_HTMLPictureElement_h
|
|
#define mozilla_dom_HTMLPictureElement_h
|
|
|
|
#include "nsGenericHTMLElement.h"
|
|
|
|
namespace mozilla {
|
|
class ErrorResult;
|
|
namespace dom {
|
|
|
|
class HTMLPictureElement final : public nsGenericHTMLElement {
|
|
public:
|
|
explicit HTMLPictureElement(
|
|
already_AddRefed<mozilla::dom::NodeInfo> aNodeInfo);
|
|
|
|
// nsISupports
|
|
NS_INLINE_DECL_REFCOUNTING_INHERITED(HTMLPictureElement, nsGenericHTMLElement)
|
|
|
|
nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
|
|
void RemoveChildNode(
|
|
nsIContent* aKid, bool aNotify, const BatchRemovalState* aState,
|
|
nsINode* aNewParent = nullptr,
|
|
MutationEffectOnScript aMutationEffectOnScript =
|
|
MutationEffectOnScript::DropTrustWorthiness) override;
|
|
void InsertChildBefore(
|
|
nsIContent* aKid, nsIContent* aBeforeThis, bool aNotify, ErrorResult& aRv,
|
|
nsINode* aOldParent = nullptr,
|
|
MutationEffectOnScript aMutationEffectOnScript =
|
|
MutationEffectOnScript::DropTrustWorthiness) override;
|
|
|
|
protected:
|
|
virtual ~HTMLPictureElement();
|
|
|
|
JSObject* WrapNode(JSContext*, JS::Handle<JSObject*> aGivenProto) override;
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_dom_HTMLPictureElement_h
|