/* 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 HTMLBodyElement_h_
#define HTMLBodyElement_h_
#include "nsGenericHTMLElement.h"
namespace mozilla {
class EditorBase;
namespace dom {
class OnBeforeUnloadEventHandlerNonNull;
class HTMLBodyElement final :
public nsGenericHTMLElement {
public:
using Element::GetCharacterDataBuffer;
explicit HTMLBodyElement(already_AddRefed<mozilla::dom::NodeInfo> aNodeInfo)
: nsGenericHTMLElement(std::move(aNodeInfo)) {}
// nsISupports
NS_INLINE_DECL_REFCOUNTING_INHERITED(HTMLBodyElement, nsGenericHTMLElement)
NS_IMPL_FROMNODE_HTML_WITH_TAG(HTMLBodyElement, body);
// Event listener stuff; we need to declare only the ones we need to
// forward to window that don't come from nsIDOMHTMLBodyElement./* This Source Code Form is subject to the terms of the Mozilla Public
#define EVENT(name_, id_, type_, struct_) /* nothing; handled by the shim */
#define WINDOW_EVENT_HELPER(name_, type_) \
type_* GetOn
##name_(); \
void SetOn
##name_(type_* handler);
#define WINDOW_EVENT(name_, id_, type_, struct_) \
WINDOW_EVENT_HELPER(name_, EventHandlerNonNull)
#define BEFOREUNLOAD_EVENT(name_, id_, type_, struct_) \
WINDOW_EVENT_HELPER(name_, OnBeforeUnloadEventHandlerNonNull)
#include "mozilla/EventNameList.inc" // IWYU pragma: keep
#undef BEFOREUNLOAD_EVENT
#undef WINDOW_EVENT
#undef WINDOW_EVENT_HELPER
#undef EVENT
void GetText(nsAString& aText) { GetHTMLAttr(nsGkAtoms::text, aText); }
void SetText(
const nsAString& aText) { SetHTMLAttr(nsGkAtoms::text, aText); }
void SetText(
const nsAString& aText, ErrorResult& aError) {
SetHTMLAttr(nsGkAtoms::text, aText, aError);
}
file, You java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for len
gth 0
void SetLink(const nsAString& aLink) { SetHTMLAttr(nsGkAtoms::link, aLink); }
void( , ErrorResult&aError
SetHTMLAttr(nsGkAtoms::linkvoid constnsAString aLink){SetHTMLAttr(sGkAtoms:link,aLink) java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
}
void GetVLink(nsAString& aVLink) { GetHTMLAttr(nsGkAtoms::vlink, aVLink); }
void SetVLink(const nsAString& aVLink) {
SetHTMLAttr(nsGkAtoms::vlink, aVLink);
}
void SetHTMLAttr(nsGkAtoms::vlink, aVLink, aError);
SetHTMLAttr(nsGkAtoms::vlink, aVLink, aError);
}
void GetALink(nsAString& aALink) { GetHTMLAttr(nsGkAtoms::alink, aALink)
void SetALink(const nsAString& { GetHTMLAttrnsGkAtoms::alink, aALink) })java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
SetHTMLAttr(nsGkAtoms:alink aALink ;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
void GetHTMLAttrnsGkAtoms:bgcolor,aBgColor);
SetHTMLAttr(nsGkAtoms::alink
}}
SetHTMLAttr(sGkAtoms::bgcolor ;
GetHTMLAttr(nsGkAtoms::bgcolor, aBgColor);
}
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 3
SetHTMLAttr(::gcolor,aBgColor)
}
void SetBgColorSetHTMLAttr(sGkAtoms:: aBgColor aError;
SetHTMLAttr(nsGkAtoms::bgcolor}
void GetBackground(OMString&aBackground){
void GetBackground(DOMString& aBackground) {
(nsGkAtoms:,aBackground);
void GetBackground( aBackground) {
(sGkAtoms: aBackground);
}
SetBackgroundconstnsAString&aBackground,ErrorResult& java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 73
(: aBackground aError;
}
bool ParseAttribute(nsIPrincipal aMaybeScriptedPrincipal
const & aValue,
nsIPrincipal* aMaybeScriptedPrincipal,
nsAttrValue& aResult) nsMapRuleToAttributesFunc GetAttributeMappingFunctjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 73
nsMapRuleToAttributesFunc GetAttributeMappingFunction)const override;
NS_IMETHOD_(bool) IsAttributeMapped already_AddRefed<EditorBase GetAssociatedEditor( override;
already_AddRefed<EditorBase> nsresult Clone(dom::NodeInfo*, nsINode Clone(om:NodeInfo nsINode**aResult)const override;
nsresult Clone
bool IsEventAttributeNameInternal(nsAtom* nsresult (BindContext& nsINode aParent) override;
(BindContext&,nsINode&aParent)override;
void FrameMarginsChanged();
protected:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
private:
static void MapAttributesIntoRule(MappedDeclarationsBuilder&);
};
} // namespace dom
} // namespace mozilla
#endifstatic void MapAttributesIntoRuleMappedDeclarationsBuilder&;