Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Issue 2107043002: Schedule cursor update on URL cursor image loaded (Closed)

Created:
4 years, 5 months ago by chongz
Modified:
4 years, 5 months ago
Reviewers:
dtapuska, eae
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/3f1e03998e7a4bc4a422e7eb4f6a25a17eebf508 Cr-Commit-Position: refs/heads/master@{#405019}

Patch Set 1 : Add resource listeners and layout test #

Total comments: 2

Patch Set 2 : dtapuska's review #

Total comments: 2

Patch Set 3 : eae's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/events/mouse-cursor-change-after-image-load.html View 1 chunk +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFrame.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFrame.cpp View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 4 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
chongz
dtapuska@ PTAL at this cursor image CL, thanks! PS: The layout test will crash on ...
4 years, 5 months ago (2016-07-08 18:15:36 UTC) #5
dtapuska
On 2016/07/08 18:15:36, chongz wrote: > dtapuska@ PTAL at this cursor image CL, thanks! > ...
4 years, 5 months ago (2016-07-08 18:35:49 UTC) #6
dtapuska
https://codereview.chromium.org/2107043002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2107043002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2134 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2134: for (const CursorData& cursorOld : *oldCursors) { Can you ...
4 years, 5 months ago (2016-07-08 18:35:58 UTC) #7
chongz
eae@ can you take a look at this CL please? I'm trying to schedule cursor ...
4 years, 5 months ago (2016-07-11 17:31:56 UTC) #9
eae
https://codereview.chromium.org/2107043002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2107043002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode3205 third_party/WebKit/Source/core/layout/LayoutObject.cpp:3205: if (const CursorList* cursors = style()->cursors()) { I'm not ...
4 years, 5 months ago (2016-07-12 16:16:00 UTC) #10
chongz
eae@ Thanks for the review! However I'm not sure if I understood your suggestions correctly, ...
4 years, 5 months ago (2016-07-12 20:08:13 UTC) #11
eae
On 2016/07/12 20:08:13, chongz wrote: > eae@ Thanks for the review! However I'm not sure ...
4 years, 5 months ago (2016-07-12 20:26:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2107043002/80001
4 years, 5 months ago (2016-07-13 02:51:04 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 5 months ago (2016-07-13 04:31:11 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 04:32:49 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3f1e03998e7a4bc4a422e7eb4f6a25a17eebf508
Cr-Commit-Position: refs/heads/master@{#405019}

Powered by Google App Engine
This is Rietveld 408576698