Remove nsI{Text,Form}ControlFrame.
Categories
(Core :: Layout, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox130 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
Details
Attachments
(2 files)
| Assignee | ||
Comment 1•2 years ago
|
||
It's a rather useless interface:
- nsITextControlFrame is only implemented by nsTextControlFrame, so we
can just use that. - nsIFormControlFrame had very few actual functionality, mostly
scattered around:- SetFormProperty(select) was only useful for nsTextControlFrame.
- SetFormProperty(value) was only called on file controls.
- SetFocus() did mostly nothing, or things that can be done in
ElementStateChanged instead.
There are some do_QueryFrame calls that I replaced for better checks in
font inflation and nsIFrame, but I'll adjust to preserve behavior if you
insist (it just such a somewhat-random check).
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
I realized while looking at the previous patch that enabling the search
button technically changes behavior of the IsTextInputFrame() checks.
Do the same we do for nsNumberControlFrame for consistency, and clean-up
the code while at it.
This doesn't change behavior because this code is not enabled by
default.
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fe6e34491cdb
https://hg.mozilla.org/mozilla-central/rev/10f23d70c967
https://hg.mozilla.org/mozilla-central/rev/794c0df6ca15
https://hg.mozilla.org/mozilla-central/rev/cc53364019a1
Description
•