Closed Bug 1534914 Opened 5 years ago Closed 5 years ago

Improve blocked cursor behavior to fall back to next image.

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

I think it's better to fall back to the next cursor image rather than blocking all cursor images altogether. This also cleans up a bit.

Right now we just block the image returned from nsIFrame::GetCursor, which is
the first loading cursor image.

I think we should do the same we do when the image fails to load, which is to
fall back to the next image instead.

This patch moves all the custom cursor code selection logic to
EventStateManager, and lets the frame return a CursorKind and whether custom
images are allowed.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a4d1dd58552d
Improve blocked cursor behavior to fall back to next image. r=smaug
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: