Closed Bug 1787680 Opened 2 years ago Closed 2 years ago

Make CSSEditUtils static class

Categories

(Core :: DOM: Editor, task)

Unspecified
All
task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox104 --- wontfix
firefox105 --- wontfix
firefox106 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Actually, we alloc CSSEditUtils instance in HTMLEditor, but it is to use HTMLEditor in CSSEditUtils. I think that it is better to add a parameter as HTMLEditor instead of allocating CSSEditUtils.

CSSEditUtils::IsCSSPrefChecked is used in HTMLEditor only, so we can move
mIsCSSPrefChecked to HTMLEditor.

We can change all methods in CSSEditUtils to static method if we add
HTMLEditor parameter.

Depends on D155975

Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/933638b65132
Part 1. Move mIsCSSPrefChecked to HTMLEditor. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/9ea7b8f101b3
Part 2. Don't create CSSEditUtils instance. r=masayuki
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: