Bug 204448

Summary: Optimize dynamic media queries
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: emilio, eric.carlson, esprehn+autocc, ews-watchlist, ggaren, glenn, gyuyoung.kim, jer.noble, macpherson, menard, philipj, sergio
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 204449, 205263, 205264, 205391, 205392, 205406    
Bug Blocks:    
Attachments:
Description Flags
wip
none
wip none

Description Antti Koivisto 2019-11-21 01:38:58 PST
All media queries currently force full style resolver rebuild when a query evaluation changes (for example viewport queries on window resizing or device rotation). This is very inefficient. We should treat media queries more like selectors, avoid rebuilds, and only perform the needed style recalcs.
Comment 1 Antti Koivisto 2019-11-21 07:35:05 PST
<rdar://problem/40768292>
Comment 2 Antti Koivisto 2019-12-13 05:42:33 PST
Created attachment 385595 [details]
wip
Comment 3 Antti Koivisto 2019-12-13 09:42:13 PST
Created attachment 385611 [details]
wip
Comment 4 Antti Koivisto 2019-12-20 08:52:08 PST
This is done.