Bug 275937

Summary: We fail to re-evaluate compositing when resizing this test case
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CompositingAssignee: Gerald Squelart <g_squelart>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: g_squelart, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 276216    
Bug Blocks:    
Attachments:
Description Flags
Test case none

Simon Fraser (smfr)
Reported 2024-06-26 20:32:43 PDT
Created attachment 471753 [details] Test case Load the attached testcase and size the window so that the red outlined box is outside the yellow box. Note that the green square is behind the yellow (bug 275698). Now resize it so that the red box overlaps the yellow box. The rendering order does not change. Now enable layer borders. Now the green box pops in front. We should have popped the green box to the front when the red and yellow boxes started to overlap. On resize, the fail the "if (updateRoot->hasDescendantNeedingCompositingRequirementsTraversal() || updateRoot->needsCompositingRequirementsTraversal())" condition.
Attachments
Test case (1.43 KB, text/html)
2024-06-26 20:32 PDT, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2024-06-26 20:47:34 PDT
We need to set some dirty bits on RenderLayers. We're running `traverseUnchangedSubtree()` when we should actually be re-evaluating compositing.
Radar WebKit Bug Importer
Comment 2 2024-07-03 20:33:13 PDT
Gerald Squelart
Comment 3 2024-07-04 19:20:08 PDT
This should get fixed by bug 276216, its patch includes a test derived from the test case here.
Simon Fraser (smfr)
Comment 4 2024-07-22 11:34:42 PDT
*** This bug has been marked as a duplicate of bug 276216 ***
Note You need to log in before you can comment on or make changes to this bug.