at least it should be based on the device scale factor
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
<rdar://problem/79824597>
Alan ended up landing a more targeted fix. This change is no longer needed.