Closed Bug 1800553 Opened 1 year ago Closed 1 year ago

Some `HTMLAnchorElement` methods can be `const`

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

Details

Attachments

(2 files)

No description provided.

Most of them are used only by the WebIDL bindings. Therefore, this fixes only
one caller in HTMLEditUtils.

GetText requires to change nsContentUtils, therefore it'll be done by the
following patch.

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

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/c6d6e9dfe1e2
part 1: Change most getter methods of `HTMLAnchorElement` to `const` methods r=smaug
https://hg.mozilla.org/integration/autoland/rev/75abe5b4a987
part 2: Change `HTMLAnchorElement::GetText` to a `const` method r=smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: