Closed Bug 1910428 Opened 6 months ago Closed 6 months ago

Remove duplicate code in nsContainerFrame::ComputeAutoSize

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(4 files)

See the patches for other clean up.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

The only caller of nsIFrame::ComputeAutoSize(), including all the override
methods by derived classes, is nsIFrame::ComputeSize(). Because
nsSubDocumentFrame provides its own ComputeSize(), its ComputeAutoSize()
is never used. Therefore, it can be removed.

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/eb5182a9ee92 Part 1 - Remove an unused #define in nsCheckboxRadioFrame.cpp. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/63b49033e0e6 Part 2 - Convert BtlsISizeType to an enum class. r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/50868b2aff9a Part 3 - Remove unused nsSubDocumentFrame::ComputeAutoSize(). r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/eb6a8166ab1e Part 4 - Call nsIFrame::ComputeAutoSize() in nsContainerFrame::ComputeAutoSize(). r=layout-reviewers,jfkthame
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: