Bug 1816328 - Misc HTMLBRElement clean-ups. r=smaug

Just some drive-by clean-ups while I was looking at this header.

Depends on D169571

Differential Revision: https://phabricator.services.mozilla.com/D169572
This commit is contained in:
Emilio Cobos Álvarez 2023-02-13 13:28:27 +00:00
parent c4d27f5171
commit a57f17a38c

View file

@ -36,16 +36,15 @@ class HTMLBRElement final : public nsGenericHTMLElement {
NS_IMPL_FROMNODE_HTML_WITH_TAG(HTMLBRElement, br)
virtual bool ParseAttribute(int32_t aNamespaceID, nsAtom* aAttribute,
const nsAString& aValue,
nsIPrincipal* aMaybeScriptedPrincipal,
nsAttrValue& aResult) override;
bool ParseAttribute(int32_t aNamespaceID, nsAtom* aAttribute,
const nsAString& aValue,
nsIPrincipal* aMaybeScriptedPrincipal,
nsAttrValue& aResult) override;
NS_IMETHOD_(bool) IsAttributeMapped(const nsAtom* aAttribute) const override;
virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction()
const override;
virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
nsMapRuleToAttributesFunc GetAttributeMappingFunction() const override;
nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
bool Clear() { return GetBoolAttr(nsGkAtoms::clear); }
bool Clear() const { return GetBoolAttr(nsGkAtoms::clear); }
void SetClear(const nsAString& aClear, ErrorResult& aError) {
return SetHTMLAttr(nsGkAtoms::clear, aClear, aError);
}
@ -53,8 +52,8 @@ class HTMLBRElement final : public nsGenericHTMLElement {
return GetHTMLAttr(nsGkAtoms::clear, aClear);
}
virtual JSObject* WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
JSObject* WrapNode(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
bool IsPaddingForEmptyEditor() const {
return HasFlag(NS_PADDING_FOR_EMPTY_EDITOR);