Closed Bug 1393355 Opened 7 years ago Closed 7 years ago

Move SetTextRangeStyle from nsISelectionPrivate to Selection

Categories

(Core :: DOM: Selection, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(1 file)

There is no reason that SetTextRangeStyle is defined at nsISelectionPrivate and SetTextRangeStyle isn't scriptable, and is called from CompositionTransaction::SetIMESelection only.  So we should move this to Selection.
Comment on attachment 8900618 [details]
Bug 1393355 - Move SetTextRangeStyle from nsISelectionPrivate to Selection.

https://reviewboard.mozilla.org/r/172038/#review177324

::: dom/base/Selection.h:297
(Diff revision 1)
> +   * Set the painting style for the range. The range must be a range in
> +   * the selection. The textRangeStyle will be used by text frame
> +   * when it is painting the selection.
> +   */
> +  nsresult SetTextRangeStyle(nsRange* aRange,
> +                             const mozilla::TextRangeStyle& aTextRangeStyle);

I guess |mozilla::| isn't necessary here.
Attachment #8900618 - Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/4deeff0c8f25
Move SetTextRangeStyle from nsISelectionPrivate to Selection. r=masayuki
https://hg.mozilla.org/mozilla-central/rev/4deeff0c8f25
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: