Bug 284139

Summary: Callers of RenderStyle::setFontDescription() should not have to manually call fontCascade().update()
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 267252    

Simon Fraser (smfr)
Reported 2024-12-05 18:20:38 PST
`RenderStyle::setFontDescription()` is written in a way that requires callers to subsequently call `fontCascade().update()`, because `setFontDescription` computes a new FontCascade that is lacking a FontCascadeFonts. A call to update() is needed to compute the fonts.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-12-05 18:20:58 PST
Simon Fraser (smfr)
Comment 2 2024-12-05 18:24:01 PST
EWS
Comment 3 2024-12-06 15:51:56 PST
Committed 287465@main (68c05597505a): <https://commits.webkit.org/287465@main> Reviewed commits have been landed. Closing PR #37523 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.