Closed Bug 1926825 Opened 1 year ago Closed 1 year ago

optimize FontSizeInflationListMarginAdjustment

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

No description provided.

This does show up in profiles and it usually does nothing.

On desktop font inflation is disabled, so the nsLayoutUtils::FontSizeInflationFor check always returns early.

On mobile, most block frames do not have a marker, so we can do a fast frame state bit check to avoid the slow block frame check (which uses the slow path of query frame).

Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06f5cf917ecf Optimize FontSizeInflationListMarginAdjustment. r=layout-reviewers,jwatt,emilio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: