Closed Bug 1484122 Opened 6 years ago Closed 6 years ago

Split HTMLEditor::DeleteTableRow() for internal use

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox63 --- wontfix
firefox64 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

No description provided.
Priority: -- → P3
This patch changes a bit in HTMLEditor::DeleteTableRow() because calling DeleteTable2() without those helper classes hits MOZ_ASSERT().
nsITableEditor::DeleteTableRow() is an XPCOM method but there are some internal users. So, it should be implemented as non-virtual protected method and internal users should use it instead. This also renames (and reimplement) HTMLEditor::DeleteTable2() since it's really bad name and the code dispatches unnecessary "selectionchange" events.
This patch renames HTMLEditor::DeleteRow() to HTMLEditor::DeleteTableRowWithTransaction() and cleans up its implementation.
Comment on attachment 9009319 [details] Bug 1484122 - part 0: Add automated tests for nsITableEditor.deleteTableRow.html Makoto Kato [:m_kato] has approved the revision.
Attachment #9009319 - Flags: review+
Comment on attachment 9009320 [details] Bug 1484122 - part 1: Create HTMLEditor::DeleteSelectedTableRowsWithTransaction() for internal use of nsITableEditor::DeleteTableRow() Makoto Kato [:m_kato] has approved the revision.
Attachment #9009320 - Flags: review+
Comment on attachment 9009321 [details] Bug 1484122 - part 2: Clean up HTMLEditor::DeleteRow() Makoto Kato [:m_kato] has approved the revision.
Attachment #9009321 - Flags: review+
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/9913556f42c1 part 0: Add automated tests for nsITableEditor.deleteTableRow.html r=m_kato
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/7e2fe3f19c3c part 1: Create HTMLEditor::DeleteSelectedTableRowsWithTransaction() for internal use of nsITableEditor::DeleteTableRow() r=m_kato https://hg.mozilla.org/integration/autoland/rev/b240ef0f3694 part 2: Clean up HTMLEditor::DeleteRow() r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: