Bug 241225

Summary: [CSS Container Queries] Re-evaluate queries after subframe size changes
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, kangil.han, macpherson, menard, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 229659    
Attachments:
Description Flags
Patch
koivisto: commit-queue+
Patch
none
Patch for landing
none
Patch
none
Patch
none
Patch for landing none

Antti Koivisto
Reported 2022-06-02 06:16:13 PDT
We fail to update on frame size change.
Attachments
Patch (12.12 KB, patch)
2022-06-02 06:24 PDT, Antti Koivisto
koivisto: commit-queue+
Patch (12.39 KB, patch)
2022-06-02 09:08 PDT, Antti Koivisto
no flags
Patch for landing (12.40 KB, patch)
2022-06-02 09:12 PDT, Antti Koivisto
no flags
Patch (12.33 KB, patch)
2022-06-02 09:36 PDT, Antti Koivisto
no flags
Patch (11.47 KB, patch)
2022-06-02 09:50 PDT, Antti Koivisto
no flags
Patch for landing (11.47 KB, patch)
2022-06-03 01:45 PDT, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2022-06-02 06:24:13 PDT
zalan
Comment 2 2022-06-02 09:01:23 PDT
Comment on attachment 459959 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459959&action=review > Source/WebCore/page/FrameViewLayoutContext.h:58 > + void layoutWithoutUpdatingQueryContainers(); I assume we are not planning on introducing too many new layout() callsites, so in practice having these 2 functions and deciding "which one to call when" won't cause any issues -but in theory it may be a bit puzzling which one to actually use. I guess if you don't know whether you need query containers, it's better to just use layout().
Antti Koivisto
Comment 3 2022-06-02 09:03:40 PDT
> I assume we are not planning on introducing too many new layout() callsites, > so in practice having these 2 functions and deciding "which one to call > when" won't cause any issues -but in theory it may be a bit puzzling which > one to actually use. I guess if you don't know whether you need query > containers, it's better to just use layout(). The idea is to just use layout() except in container query related code (there is one other call site for some stupid reasons).
Antti Koivisto
Comment 4 2022-06-02 09:08:04 PDT
Antti Koivisto
Comment 5 2022-06-02 09:12:38 PDT
Created attachment 459963 [details] Patch for landing
Antti Koivisto
Comment 6 2022-06-02 09:36:14 PDT
Antti Koivisto
Comment 7 2022-06-02 09:50:43 PDT
Antti Koivisto
Comment 8 2022-06-03 01:45:06 PDT
Created attachment 460005 [details] Patch for landing
EWS
Comment 9 2022-06-03 02:54:45 PDT
Committed r295200 (251257@main): <https://commits.webkit.org/251257@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 460005 [details].
Radar WebKit Bug Importer
Comment 10 2022-06-03 02:55:14 PDT
Note You need to log in before you can comment on or make changes to this bug.