Bug 255266

Summary: REGRESSION(r262728): elementsFromPoint misses elements if they are in different paint passes
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2023-04-10 18:42:15 PDT
https://commits.webkit.org/262728@main changed the behaviour such that we only write to the HitTestResult if we hit a layer in that paint behaviour pass.

For elementsFromPoint we don't record a single hit layer, and we to append to the HitTestResult for each element that we intersected.

This change always appends to the final HitTestResult if resultIsElementList().

This doesn't fix the problem that these appends are done in normal paint order, not 3d depth sorted order (if transform-style is preserve-3d), which is bug 255265.
Comment 1 Radar WebKit Bug Importer 2023-04-10 18:42:28 PDT
<rdar://problem/107862197>
Comment 2 Matt Woodrow 2023-04-12 14:19:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12598
Comment 3 EWS 2023-04-12 18:17:51 PDT
Committed 262897@main (21a87c580718): <https://commits.webkit.org/262897@main>

Reviewed commits have been landed. Closing PR #12598 and removing active labels.