Bug 1800553 - part 2: Change HTMLAnchorElement::GetText to a const method r=smaug

This needs to change `nsContentUtils` methods because of used by the method.
Then, we can make some there callers are also `const` methods.

Depends on D162065

Differential Revision: https://phabricator.services.mozilla.com/D162066
This commit is contained in:
Masayuki Nakano
2022-11-16 00:21:30 +00:00
parent 8579120235
commit 5dfd7f8719
17 changed files with 28 additions and 26 deletions

View File

@@ -242,7 +242,7 @@ class HTMLTextAreaElement final : public TextControlElement,
SetHTMLAttr(nsGkAtoms::wrap, aWrap, aError);
}
void GetType(nsAString& aType);
void GetDefaultValue(nsAString& aDefaultValue, ErrorResult& aError);
void GetDefaultValue(nsAString& aDefaultValue, ErrorResult& aError) const;
void SetDefaultValue(const nsAString& aDefaultValue, ErrorResult& aError);
void GetValue(nsAString& aValue);
/**