Closed Bug 1484128 Opened 7 years ago Closed 7 years ago

Split HTMLEditor::GetFirstSelectedCell() for internal use

Categories

(Core :: DOM: Editor, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
HTMLEditor::GetFirstSelectedCell() is an XPCOM method, but used internally a lot. Therefore, we should create a non-virtual method for internal use. This patch creates HTMLEditor::GetFirstSelectedTableCellElement(), and it won't return NS_SUCCESS_EDITOR_ELEMENT_NOT_FOUND since nobody needs the value. It's enough to check whether the result is nullptr without error for any callers.
Comment on attachment 9003398 [details] Bug 1484128 - part 1: Create HTMLEditor::GetFirstSelectedTableCellElement() for internal use of HTMLEditor::GetFirstSelectedCell() Makoto Kato [:m_kato] has approved the revision.
Attachment #9003398 - Flags: review+
Comment on attachment 9003397 [details] Bug 1484128 - part 0: Add automated tests for nsITableEditor::GetFirstSelectedCell() Makoto Kato [:m_kato] has approved the revision.
Attachment #9003397 - Flags: review+
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/7f45ff1131eb part 0: Add automated tests for nsITableEditor::GetFirstSelectedCell() r=m_kato
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/90f962c6f3df part 1: Create HTMLEditor::GetFirstSelectedTableCellElement() for internal use of HTMLEditor::GetFirstSelectedCell() r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: