Closed
Bug 1425547
Opened 7 years ago
Closed 7 years ago
Remove unused methods from nsIHTMLInlineTableEditor
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla60
People
(Reporter: m_kato, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
inlineTableEditingEnabled and refreshInlineTableEditingUI are used by bluegriffon, but others aren't used by m-c, c-c and bluegriffon. Let's remove this from nsIHTMLInlineTableEditor.idl
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → m_kato
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8944224 [details]
Bug 1425547 - Remove unused methods from nsIHTMLInlineTableEditor.
https://reviewboard.mozilla.org/r/214506/#review220446
::: editor/libeditor/HTMLEditorEventListener.cpp:214
(Diff revision 1)
> - nsCOMPtr<nsIDOMElement> element = do_QueryInterface(target);
> + nsCOMPtr<Element> element = do_QueryInterface(target);
>
> RefPtr<HTMLEditor> htmlEditor = mEditorBase->AsHTMLEditor();
> MOZ_ASSERT(htmlEditor);
> - htmlEditor->DoInlineTableEditingAction(element);
> + htmlEditor->DoInlineTableEditingAction(*element);
This doesn't guarantee that element is always non-nullptr. So, you should call DoInlineTableEditingAction() only when element is no nullptr (its old behavior is, returning an error if element is nullptr and the result was ignored).
Attachment #8944224 -
Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c208e865749a
Remove unused methods from nsIHTMLInlineTableEditor. r=masayuki
Assignee | ||
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8944224 [details]
Bug 1425547 - Remove unused methods from nsIHTMLInlineTableEditor.
https://reviewboard.mozilla.org/r/214506/#review220764
Attachment #8944224 -
Flags: review+
Comment 5•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c208e865749a#l3.58
> +HTMLEditor::DoInlineTableEditingAction(Element& aElement)
Why isn't the parameter type `const Element&`?
Flags: needinfo?(m_kato)
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Updated•7 years ago
|
Flags: needinfo?(m_kato)
Updated•7 years ago
|
Updated•5 years ago
|
Blocks: redesign-editor-scriptable-API
You need to log in
before you can comment on or make changes to this bug.
Description
•