Closed
Bug 1484125
Opened 6 years ago
Closed 6 years ago
Split HTMLEditor::GetTableSize() 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•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Ah, I realized that part 1 can be simpler than now. I'll attach part.1 later.
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
HTMLEditor::GetTableSize() is an XPCOM method but used internally a lot.
Therefore, it shouldn't be called for internal use. Additionally, the
callers need to declare two int32_t variables, but this causes the code
messy. Therefore, this patch creates TableSize struct and it implements
HTMLEditor::GetTableSize(). Then, all callers of it is replaced with
TableSize struct.
New TableSize struct does not support computes <table> element from anchor
of Selection since there is no user of this in C++ code.
Comment 5•6 years ago
|
||
Comment on attachment 9003033 [details]
Bug 1484125 - part 0: Add automated tests for nsITableEditor::GetTableSize()
Makoto Kato [:m_kato] has approved the revision.
Attachment #9003033 -
Flags: review+
Comment 6•6 years ago
|
||
Comment on attachment 9003037 [details]
Bug 1484125 - part 1: Create TableSize struct to compute and store number of rows and columns of a <table> element
Makoto Kato [:m_kato] has approved the revision.
Attachment #9003037 -
Flags: review+
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/5c0edfef06dd
part 0: Add automated tests for nsITableEditor::GetTableSize() r=m_kato
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/3cf8d56c3f33
part 1: Create TableSize struct to compute and store number of rows and columns of a <table> element r=m_kato
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5c0edfef06dd
https://hg.mozilla.org/mozilla-central/rev/3cf8d56c3f33
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
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
•