Closed Bug 1714914 Opened 3 years ago Closed 3 years ago

Stop using `int32_t` for offset in parent node in editor module

Categories

(Core :: DOM: Editor, task, P3)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Some methods in editor module still use int32_t for offset in parent node. However, for consistency with DOM API, it should be uint32_t.

It should be treated as uint32_t since DOM API does so. However, there are
some exceptions:

  • Result of nsINode::ComputeIndexOf()
  • Result of nsAString methods

They return -1 as not found, and anyway, they cannot treat large integer
than INT32_MAX. Therefore, this patch does not touch around them.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/71670cedaf26 Make editor classes treat offset in parent node as uint32_t r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Regressions: 1719669
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: