Closed Bug 1909311 Opened 2 years ago Closed 2 years ago

Remove nsI{Text,Form}ControlFrame.

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(2 files)

No description provided.

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).

Assignee: nobody → emilio
Status: NEW → ASSIGNED

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.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe6e34491cdb Remove nsIFormControlFrame and nsITextControlFrame. r=masayuki,layout-reviewers,dholbert https://hg.mozilla.org/integration/autoland/rev/10f23d70c967 Misc clean ups to nsSearchControlFrame. r=layout-reviewers,TYLin https://hg.mozilla.org/integration/autoland/rev/794c0df6ca15 apply code formatting via Lando
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/cc53364019a1 Fix for test_selection_tripleclick.html.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: