Closed
Bug 1484128
Opened 7 years ago
Closed 7 years ago
Split HTMLEditor::GetFirstSelectedCell() for internal use
Categories
(Core :: DOM: Editor, enhancement)
Core
DOM: Editor
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.
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
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 3•7 years ago
|
||
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 4•7 years ago
|
||
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
Comment 7•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7f45ff1131eb
https://hg.mozilla.org/mozilla-central/rev/90f962c6f3df
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
| Assignee | ||
Updated•7 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
•