summaryrefslogtreecommitdiff
path: root/dom/base/nsHTMLContentSerializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsHTMLContentSerializer.h')
-rw-r--r--dom/base/nsHTMLContentSerializer.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/dom/base/nsHTMLContentSerializer.h b/dom/base/nsHTMLContentSerializer.h
index de63f7ee54..288abd8273 100644
--- a/dom/base/nsHTMLContentSerializer.h
+++ b/dom/base/nsHTMLContentSerializer.h
@@ -37,18 +37,16 @@ class nsHTMLContentSerializer final : public nsXHTMLContentSerializer {
nsAString& aStr) override;
protected:
- MOZ_MUST_USE
- virtual bool SerializeHTMLAttributes(nsIContent* aContent,
- nsIContent *aOriginalElement,
- nsAString& aTagPrefix,
- const nsAString& aTagNamespaceURI,
- nsIAtom* aTagName,
- int32_t aNamespace,
- nsAString& aStr);
-
- MOZ_MUST_USE
- virtual bool AppendAndTranslateEntities(const nsAString& aStr,
- nsAString& aOutputStr) override;
+ [[nodiscard]] virtual bool SerializeHTMLAttributes(nsIContent* aContent,
+ nsIContent* aOriginalElement,
+ nsAString& aTagPrefix,
+ const nsAString& aTagNamespaceURI,
+ nsIAtom* aTagName,
+ int32_t aNamespace,
+ nsAString& aStr);
+
+ [[nodiscard]] virtual bool AppendAndTranslateEntities(const nsAString& aStr,
+ nsAString& aOutputStr) override;
};