NEW 132107
Cursor doesn't change back to pointer when leaving the Safari window slowly
https://bugs.webkit.org/show_bug.cgi?id=132107
Summary Cursor doesn't change back to pointer when leaving the Safari window slowly
Ryosuke Niwa
Reported 2014-04-23 21:29:09 PDT
Reproduction steps 1. Open large image in Safari 2. Move mouse cursor over the image to reveal the magnification cursor icon 3. _Slowly_ move cursor from image to bookmarks bar Expected Results: Magnification cursor icon should disappear Actual Results: Magnification cursor remains <rdar://problem/12049075>
Attachments
Initial attempt (94.03 KB, patch)
2014-04-23 21:39 PDT, Ryosuke Niwa
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 (510.21 KB, application/zip)
2014-04-23 22:49 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (539.30 KB, application/zip)
2014-04-23 23:17 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (537.68 KB, application/zip)
2014-04-24 00:10 PDT, Build Bot
no flags
Ryosuke Niwa
Comment 1 2014-04-23 21:39:46 PDT
Created attachment 230046 [details] Initial attempt
Ryosuke Niwa
Comment 2 2014-04-23 21:40:20 PDT
I'd appreciate if someone could suggest me a testing strategy.
Ryosuke Niwa
Comment 3 2014-04-23 21:42:17 PDT
Note that the problem is fixed since http://trac.webkit.org/changeset/167700 when the mouse cursor is moved rapidly out of the window.
zalan
Comment 4 2014-04-23 22:11:19 PDT
Comment on attachment 230046 [details] Initial attempt View in context: https://bugs.webkit.org/attachment.cgi?id=230046&action=review I stopped going through the changes. I'd be just repeating my comments. What I am missing here is the strategy of rounding and whether it is ensured that all these type conversions (especially on convertFromRenderer()) won't introduce any side-effects now that we take Float* instead of Int* (so all implicit flooring through integer arithmetic are gone now). > Source/WebCore/dom/MouseRelatedEvent.cpp:78 > + adjustedPageLocation = roundedLayoutPoint(frameView->windowToContents(windowLocation)); roundedLayoutPoint simply converts FloatPoint->LayoutPoint when subpixel is on. What are you trying to round here? If it's just type conversion, I'd prefer you do it explicitly. > Source/WebCore/editing/Editor.cpp:2795 > + VisibleSelection selection(frame->visiblePositionForPoint(roundedIntPoint(framePoint))); Why round here? Other places you seem to just floor implicitly by doing lossy FloatPoint to IntPoint conversion. > Source/WebCore/page/EventHandler.cpp:623 > + LayoutPoint vPoint = roundedLayoutPoint(view->windowToContents(event.event().position())); Same here. > Source/WebCore/page/EventHandler.cpp:737 > + m_dragStartPos = roundedLayoutPoint(event.event().position()); Same here. > Source/WebCore/page/EventHandler.cpp:1057 > + return page->dragController().delegateDragSourceAction(view->contentsToRootView(roundedIntPoint(m_mouseDownPos))); Why round?
Build Bot
Comment 5 2014-04-23 22:49:19 PDT
Comment on attachment 230046 [details] Initial attempt Attachment 230046 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4864321867743232 New failing tests: fast/css/resize-corner-tracking-transformed-iframe.html
Build Bot
Comment 6 2014-04-23 22:49:23 PDT
Created attachment 230052 [details] Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-16 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 7 2014-04-23 23:17:32 PDT
Comment on attachment 230046 [details] Initial attempt Attachment 230046 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/6057171724795904 New failing tests: fast/css/resize-corner-tracking-transformed-iframe.html
Build Bot
Comment 8 2014-04-23 23:17:36 PDT
Created attachment 230053 [details] Archive of layout-test-results from webkit-ews-01 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-01 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 9 2014-04-24 00:10:45 PDT
Comment on attachment 230046 [details] Initial attempt Attachment 230046 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5974265971081216 New failing tests: fast/css/resize-corner-tracking-transformed-iframe.html
Build Bot
Comment 10 2014-04-24 00:10:50 PDT
Created attachment 230056 [details] Archive of layout-test-results from webkit-ews-08 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Ryosuke Niwa
Comment 11 2014-12-14 10:09:20 PST
Comment on attachment 230046 [details] Initial attempt This patch is bad.
Note You need to log in before you can comment on or make changes to this bug.