Closed Bug 1714918 Opened 4 years ago Closed 4 years ago

Sort out accessors of editor concrete classes

Categories

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

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

  • nsIEditor::As* is sometimes used instead of nsIEditor::Is*()
  • nsIEditor::As* should just cast
  • Instead, nsIEditor::GetAs*() should check the concrete class like internal DOM API

For consistency with the similar internal DOM API, As*() should just cast
the type without checking editor type. Instead, GetAs*() should do it.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/150c70a6850a Sort out editor class accessors of `nsIEditor` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: