Closed
Bug 1393355
Opened 8 years ago
Closed 8 years ago
Move SetTextRangeStyle from nsISelectionPrivate to Selection
Categories
(Core :: DOM: Selection, enhancement)
Core
DOM: Selection
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 hidden (mozreview-request) |
Comment 2•8 years ago
|
||
| mozreview-review | ||
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+
| Comment hidden (mozreview-request) |
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
Comment 5•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•