Bug 204448 - Optimize dynamic media queries
Summary: Optimize dynamic media queries
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 204449 205263 205264 205391 205392 205406
Blocks:
  Show dependency treegraph
 
Reported: 2019-11-21 01:38 PST by Antti Koivisto
Modified: 2019-12-20 08:52 PST (History)
12 users (show)

See Also:


Attachments
wip (31.10 KB, patch)
2019-12-13 05:42 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff
wip (31.82 KB, patch)
2019-12-13 09:42 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.