| Summary: | HitTestLocation should not use a fixed (1px, 1px) area for point based hittest | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||
| Status: | RESOLVED INVALID | ||||||||||
| Severity: | Normal | CC: | aboxhall, apinheiro, bfulgham, cdumez, cfleizach, changseok, dino, dmazzoni, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, gyuyoung.kim, jcraig, jdiggs, jer.noble, kangil.han, kondapallykalyan, mifenton, pdr, philipj, sabouhallawa, samuel_white, sam, schenney, sergio, simon.fraser, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | 227185 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
zalan
2021-06-19 21:21:00 PDT
Created attachment 431812 [details]
Patch
Comment on attachment 431812 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431812&action=review > Source/WebCore/ChangeLog:16 > + Eventually the input to HitTestLocation::intersect should be a device pixel snapped rect similar to painting. What makes doing this now difficult? Comment on attachment 431812 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431812&action=review > Source/WebCore/ChangeLog:12 > + This is an intermediate solution to support hit-test content on subpixel position. > + It fixes cases when we incorrectly find renderers on subpixel positions due to the integral inflate of the hit coverage area. > + e.g > + hit testing location is at [10, 10] > + renderer is at [10.6, 10] -> device pixel snapped to [11p, 10] on a 2x display Seems like we should have some tests for this. Created attachment 431907 [details]
Patch
Created attachment 431986 [details]
Patch
Alan ended up landing a more targeted fix. This change is no longer needed. |