Closed Bug 1395080 Opened 9 years ago Closed 9 years ago

Don't use nsIDOMRange's method if possible in Editor

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(4 files)

Except to editor/txtsvc/nsTextServicesDocument.cpp, I would like to replace nsIDOMRange with nsRange. Ex. nsIDROMRange::GetStartOffset -> nsRange::StartOffset. nsTextServicesDocument still uses a lot of nsIDOMNode, so this isn't target for it.
Comment on attachment 8903491 [details] Bug 1395080 - Part 1. Replace nsIDOMRange::GetCollapsed with nsRange::Collapsed. https://reviewboard.mozilla.org/r/175320/#review180356
Attachment #8903491 - Flags: review?(masayuki) → review+
Comment on attachment 8903492 [details] Bug 1395080 - Part 2. Replace nsIDOMRange::GetStartOffset and nsIDOMRange::GetEndOffset with nsRange::StartOffset and nsRange::EndOffset. https://reviewboard.mozilla.org/r/175322/#review180360
Attachment #8903492 - Flags: review?(masayuki) → review+
Comment on attachment 8903493 [details] Bug 1395080 - Part 3. Replace nsIDOMRange::GetStartContainer and nsIDOMRange::GetEndContainer with nsRange::GetStartContainer and nsRange::GetEndContainer. https://reviewboard.mozilla.org/r/175324/#review180362
Attachment #8903493 - Flags: review?(masayuki) → review+
Attachment #8903494 - Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/209fa8c3b7b5 Part 1. Replace nsIDOMRange::GetCollapsed with nsRange::Collapsed. r=masayuki https://hg.mozilla.org/integration/autoland/rev/439080e9a0fc Part 2. Replace nsIDOMRange::GetStartOffset and nsIDOMRange::GetEndOffset with nsRange::StartOffset and nsRange::EndOffset. r=masayuki https://hg.mozilla.org/integration/autoland/rev/988b79d9c709 Part 3. Replace nsIDOMRange::GetStartContainer and nsIDOMRange::GetEndContainer with nsRange::GetStartContainer and nsRange::GetEndContainer. r=masayuki https://hg.mozilla.org/integration/autoland/rev/c1b712be2b72 Part 4. Remove unused nsIDOMRange parameter. r=masayuki
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: