Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Incorrect behavior of "cursor: auto" over links
https://bugs.webkit.org/show_bug.cgi?id=173909 rdar://33054544 Reviewed by Simon Fraser. * LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/mouse-cursor-imagemap-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/no-help-cursor-on-links.historical-expected.txt: * Source/WebCore/css/html.css: hand cursor (pointer) should not be rendered through 'auto' behavior of agent. (a:any-link): (a:any-link:read-write): (area:any-link): * Source/WebCore/page/EventHandler.cpp: Removing hand cursor calculation from 'auto' case. Auto should just result in default or text cursors. We are now using computedStyle instead of renderer->style() because we still need to access style for elements without a renderer, like <area>. (WebCore::EventHandler::updateCursor): (WebCore::EventHandler::selectCursor): (WebCore::EventHandler::handleMouseMoveEvent): * Source/WebCore/page/EventHandler.h: Since we don't handle hand cursor anymore on selectCursor, selectCursor and updateCursor no longer need to receive shiftKey. Canonical link: https://commits.webkit.org/253685@main
- Loading branch information
1 parent
a98a145
commit 3a4722b
Showing
6 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...gent-style-sheet-and-presentational-hints/no-help-cursor-on-links.historical-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Unvisited help links must have pointer cursor, not help cursor assert_equals: expected "pointer" but got "auto" | ||
FAIL Visited help links must have pointer cursor, not help cursor assert_equals: expected "pointer" but got "auto" | ||
PASS Unvisited help links must have pointer cursor, not help cursor | ||
PASS Visited help links must have pointer cursor, not help cursor | ||
unvisited will be visited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters