Schedule cursor update on URL cursor image loaded
When setting a custom cursor image through CSS URL, the cursor will reflect the change only when the image was already cached.
This is because we schedule cursor update on style/layout change, but at that time the resource image might not been downloaded yet.
This CL adds resource image listeners when the style changed, and will schedule update when the image was loaded.
Note:
The layout test will crash on Debug mode, this is due to https://crbug.com/596782 and not related to this CL.
(Release build is fine though)
BUG=532233
Review-Url: https://codereview.chromium.org/2107043002
Cr-Commit-Position: refs/heads/master@{#405019}
5 files changed