RESOLVED FIXED 210778
EventHandler::selectCursor() has broken resize over coordinate conversion code
https://bugs.webkit.org/show_bug.cgi?id=210778
Summary EventHandler::selectCursor() has broken resize over coordinate conversion code
Simon Fraser (smfr)
Reported 2020-04-20 19:46:49 PDT
This looks really wrong, and is broken: if (FrameView* view = m_frame.view()) inResizer = layer->isPointInResizeControl(view->windowToContents(roundedIntPoint(result.localPoint()))); Why windowToContents() on the localPoint from a HitTestResult?
Attachments
Patch (18.20 KB, patch)
2020-04-23 15:20 PDT, Simon Fraser (smfr)
zalan: review+
Patch (18.19 KB, patch)
2020-04-23 15:29 PDT, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2020-04-20 21:19:39 PDT
This is apparent in this very textfield, where you get the iBeam cursor over the resizer.
Simon Fraser (smfr)
Comment 2 2020-04-23 11:51:50 PDT
Weirdly result.localPoint() is not local when set by RenderBlock::updateHitTestResult()
Radar WebKit Bug Importer
Comment 3 2020-04-23 13:45:18 PDT
Simon Fraser (smfr)
Comment 4 2020-04-23 15:20:45 PDT
Simon Fraser (smfr)
Comment 5 2020-04-23 15:21:02 PDT
*** Bug 156234 has been marked as a duplicate of this bug. ***
zalan
Comment 6 2020-04-23 15:25:41 PDT
Comment on attachment 397390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397390&action=review > Source/WebCore/page/EventHandler.cpp:1546 > + // FIXME: With right right-aligned text in a box, the renderer here is usually a RenderText, which prevents showing the resize cursor: webkit.org/b/210935. too many rights. > Source/WebCore/page/EventHandler.cpp:1547 > + if (auto layer = downcast<RenderLayerModelObject>(*renderer).layer()) { not sure what the WebKit style at this point, but I'd prefer auto* layer =
zalan
Comment 7 2020-04-23 15:26:23 PDT
> not sure what the WebKit style at this point, but I'd prefer auto* layer = what the WebKit style is even
Simon Fraser (smfr)
Comment 8 2020-04-23 15:29:44 PDT
EWS
Comment 9 2020-04-23 18:08:52 PDT
Committed r260615: <https://trac.webkit.org/changeset/260615> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397392 [details].
Note You need to log in before you can comment on or make changes to this bug.