Remove some nsIEditor methods which are used by neither m-c, c-c nor BlueGriffon
Categories
(Core :: DOM: Editor, task, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox74 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Obviously, the following methods of nsIEditor is not used by Gecko embedded products (I'm not sure about XUL addons for Thunderbird and SeaMonkey though).
- getAttributeValue c-c BG
- cloneAttribute c-c BG
- splitNode c-c BG
- joinNodes c-c BG
- markNodeDirty c-c BG
- removeEditorObserver c-c BG
We should just remove them from nsIEditor interface.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
- getAttributeValue
- cloneAttribute
- splitNode
- joinNodes
- markNodeDirty
- removeEditorObserver
are not used from script. Therefore, we can get rid of them from nsIEditor.
However, EditorBase::GetAttributeValue() is referred by
HTMLEditor::CopyCellBackgroundColor() and it's just a wrapper of
Element::GetAttr(). Therefore, this patch makes
HTMLEditor::CopyCellBackgroundColor() use Element::GetAttr() directly.
And also EditorBase::MarkNodeDirty() is used from some friend classes.
Therefore, this patch redesigns it as MarkElementDirty() and make all of
them check whether the method call destroys the editor.
Comment 3•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 4•6 years ago
|
||
nsIHTMLEditor.removeAllInlinePropertiesnsIHTMLEditor.increaseFontSizensIHTMLEditor.decreaseFontSizensIHTMLEditor.setParagraphFormatnsIHTMLEditor.getBackgroundColorStatensIHTMLEditor.indentnsIHTMLEditor.alignnsIEditorStyleSheets.replaceOverrideStyleSheetnsITableEditor.selectBlockOfCells
These methods are not used by any Gecko products including comm-central and
BlueGriffon so that we should remove them. Note that only
HTMLEditor::GetBackgroundColorState() is used internally so that we need to
keep it as a public method of HTMLEditor.
Comment 5•6 years ago
|
||
Comment on attachment 9123232 [details]
Bug 1610750 - Remove unused scriptable methods of nsIHTMLEditor, nsIEditorStyleSheets and nsITableEditor r=m_kato!
Revision D61139 was moved to bug 1611751. Setting attachment 9123232 [details] to obsolete.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Description
•