Closed Bug 1485923 Opened 7 years ago Closed 7 years ago

Rename non-virtual HTMLEditor::ShowResizers() to HTMLEditor::ShowResizersInternal() and merge HTMLEditor::ShowResizersInner() with it

Categories

(Core :: DOM: Editor, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox63 --- wontfix
firefox64 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

No description provided.
Priority: -- → P3
Oh, nobody uses nsIHTMLObjectResizer.showResizers(). However, I think that we should name it to "ShowResizersInternal()" for consistency with after fixing bug 1485925.
First, nobody uses nsIHTMLObjectResizer.showResizers(). So, we can remove it. Then, we have two private methods, one is non-virtual HTMLEditor::ShowResizers(), and the other is HTMLEditor::ShowResizersInner(). HTMLEditor::ShowResizers() calls HTMLEditor::ShowResizersInner() and if it fails, calls HideResizers(). However, in some cases, e.g., when it already has visible resizers, hiding resizers does not make sense. So, this patch removes non-virtual HTMLEditor::ShowResizers() method too, then, renames HTMLEditor::ShowResizersInner() to HTMLEditor::ShowResizers(), finally, it hides resizers only when it fails to setup resizers for keeping resizers hidden.
Comment on attachment 9006210 [details] Bug 1485923 - Remove nsIHTMLObjectResizer.showResizers(), rename HTMLEditor::ShowResizers() to HTMLEditor::ShowResizersInternal() and merge it with HTMLEditor::ShowResizersInner() Makoto Kato [:m_kato] (PTO 9/2 - 9/9) has approved the revision.
Attachment #9006210 - Flags: review+
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/304c3c187433 Remove nsIHTMLObjectResizer.showResizers(), rename HTMLEditor::ShowResizers() to HTMLEditor::ShowResizersInternal() and merge it with HTMLEditor::ShowResizersInner() r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: