Closed Bug 1824667 Opened 2 years ago Closed 2 years ago

Remove nsTextBoxFrame.

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

We only use it for middle-cropping. Luckily we don't have use cases for middle cropping that require any of the other features of nsTextBoxFrame, so we can just replace it with something simpler.

Factor a MiddleCroppingBlockFrame that does the double reflow shenanigans.

That should both be faster and easier to reason about. The only thing we need
to be careful about is to use the current inline coord from the line layout if
present to compute the real available isize.

Depends on D173601

Use a MiddleCroppingBlockFrame subclass that looks at the value attribute
instead. We don't need accesskey etc for these so we can just reuse it as is.

Depends on D173668

Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e14f043b6568 Factor middle-cropping out of nsFileControlFrame. r=jfkthame,layout-reviewers
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bac27e460973 Fix Bp-hybrid bustages on MiddleCroppingBlockFrame.cpp. r=emilio
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Regressions: 1825623
Regressions: 1826006
Target Milestone: --- → 113 Branch
Regressions: 1844717
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: