+125
−151
Loading
Bug 1730442 - part 3: Make `HTMLEditor::InsertTableCellsWithTransaction()` work without layout information r=m_kato It refers the layout information for getting row/column index of selected cell element or a cell element which contains selection. However, it can stop referring it if all callers can specify insertion point of new cells, and it's possible. Therefore, we can make it free from layout information. Note that this blocks legacy mutation events during inserting table cell elements, but perhaps this does not cause problems in the wild. `DOMNodeInserted` will be fired after all cell elements are inserted, so from point of view of the event listeners, editor content is different from traditional behavior, but this works only when user uses inline table editor which is disabled by default. I.e., in the wild, this path is rarely run. Note that the changes are tested by `test_nsITableEditor_insertTableColumn.html` and `test_nsITableEditor_insertTableCell.html`. Depends on D146360 Differential Revision: https://phabricator.services.mozilla.com/D146361