Closed
Bug 1484133
Opened 6 years ago
Closed 6 years ago
Split HTMLEditor::GetSelectedOrParentTableElement() for internal use
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla64
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
No description provided.
Updated•6 years ago
|
Priority: -- → P3
Assignee | ||
Comment 1•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0a1a33d32dd3f2170c62a1cfc0a879ac9621fc57
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
nsITableEditor::GetSelectedOrParentTableElement() is of course an XPCOM method, but it's used internally. So, there should be non-virtual method. On the other hand, this API is too ugly. Returns various information but each meaning is not clear. So, result of the new non-virtual method should be simpler. This patch creates the new method as: - returns found element - takes ErrorResult to return error code. - takes optional out-param for returning if a cell is selected. Then, nsITableEditor::GetSelectedOrParentTableElement() can compute its result from them with Selection.
Comment 4•6 years ago
|
||
Comment on attachment 9008599 [details] Bug 1484133 - part 0: Add automated tests for nsITableEditor.getSelectedOrParentTableElement() Makoto Kato [:m_kato] has approved the revision.
Attachment #9008599 -
Flags: review+
Comment 5•6 years ago
|
||
Comment on attachment 9008600 [details] Bug 1484133 - part 1: Create non-virtual HTMLEditor::GetSelectedOrParentTableElement() Makoto Kato [:m_kato] has approved the revision.
Attachment #9008600 -
Flags: review+
Assignee | ||
Comment 6•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9391ee122abeba8ae40e4d6ce1a325243e2cccbc
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/bcb7c4b6231b part 0: Add automated tests for nsITableEditor.getSelectedOrParentTableElement() r=m_kato https://hg.mozilla.org/integration/autoland/rev/d6556911bca9 part 1: Create non-virtual HTMLEditor::GetSelectedOrParentTableElement() r=m_kato
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bcb7c4b6231b https://hg.mozilla.org/mozilla-central/rev/d6556911bca9
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Blocks: add-scriptable-editor-API-tests
You need to log in
before you can comment on or make changes to this bug.
Description
•