Bug 284001

Summary: resolveForDocument() should explicitly set the FontCascade on the style
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 267252    

Simon Fraser (smfr)
Reported 2024-12-03 15:17:04 PST
Currently, resolveForDocument () does: documentStyle.fontCascade().update(&const_cast<Document&>(document).fontSelector()) This updates the FontCascade in-place, which means that that the object shared by existing RenderStyles, and any newly created styles will be the same even when there is a change that should have prompted style diffs.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-12-03 15:17:24 PST
Simon Fraser (smfr)
Comment 2 2024-12-03 15:57:42 PST
EWS
Comment 3 2024-12-03 19:55:00 PST
Committed 287326@main (c731586091b5): <https://commits.webkit.org/287326@main> Reviewed commits have been landed. Closing PR #37394 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.