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

Issue 2018923002: Fixed cursor hotspot SVG override and made CSSCursorImageValue constant (Closed)

Created:
4 years, 6 months ago by sashab
Modified:
4 years, 6 months ago
Reviewers:
Timothy Loh
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed cursor hotspot SVG override and made CSSCursorImageValue constant Move the hotspot logic out of CSSCursorImageValue to keep it as a constant object (except for the image cache). This is prework to make all StyleBuilderFunctions take a const CSSValue&. This also fixes a bug where the hotspot of an SVG cursor element was being overridden by the element's specified hotspot even when the hotspot was specified in CSS. Now the hotspot is only overridden if it is not specified in the CSS, but is specified in the SVG. Note: When getting the computed style for SVG cursors, Firefox always returns the URL to the SVG element, and doesn't support intrinsic hotspot definition. Relevant Spec: https://drafts.csswg.org/css-ui/#cursor BUG=526586 Committed: https://crrev.com/eae6561b90f59fb5bc26c0817c511aa5e667c428 Cr-Commit-Position: refs/heads/master@{#397061}

Patch Set 1 #

Patch Set 2 : Some kind of test... Not working though #

Total comments: 10

Patch Set 3 : Review feedback + some bugfixes #

Patch Set 4 : Changed test to use harness #

Total comments: 5

Patch Set 5 : Rebased onto cursor fix patch & added FF notes & other feedback #

Patch Set 6 : Removed FF comment from test #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -36 lines) Patch
A third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.html View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCursorImageValue.h View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp View 1 2 3 4 4 chunks +9 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 1 chunk +27 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (4 generated)
sashab
Test wip
4 years, 6 months ago (2016-05-27 07:31:46 UTC) #2
Timothy Loh
https://codereview.chromium.org/2018923002/diff/20001/third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg File third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg (right): https://codereview.chromium.org/2018923002/diff/20001/third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg#newcode33 third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg:33: if (getComputedStyle(cursorWithXYOnSVGOnly).cursor == "url(\"file:///icon1.ico\") 10 20, auto") probably worthwhile ...
4 years, 6 months ago (2016-05-30 01:38:35 UTC) #3
sashab
https://codereview.chromium.org/2018923002/diff/20001/third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg File third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg (right): https://codereview.chromium.org/2018923002/diff/20001/third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg#newcode33 third_party/WebKit/LayoutTests/svg/css/cursor-hotspot-override-from-css.svg:33: if (getComputedStyle(cursorWithXYOnSVGOnly).cursor == "url(\"file:///icon1.ico\") 10 20, auto") On 2016/05/30 ...
4 years, 6 months ago (2016-05-31 04:22:37 UTC) #4
sashab
Changed test to use harness :)
4 years, 6 months ago (2016-05-31 04:53:28 UTC) #5
Timothy Loh
I guess we should land the other patch first and rebase this one on top ...
4 years, 6 months ago (2016-05-31 05:04:35 UTC) #6
sashab
This patch keeps getting better and better :) https://codereview.chromium.org/2018923002/diff/60001/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp File third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp (left): https://codereview.chromium.org/2018923002/diff/60001/third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp#oldcode160 third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp:160: String ...
4 years, 6 months ago (2016-05-31 05:24:12 UTC) #7
Timothy Loh
lgtm
4 years, 6 months ago (2016-06-01 02:54:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018923002/120001
4 years, 6 months ago (2016-06-01 04:54:07 UTC) #11
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-01 05:02:54 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 05:04:01 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/eae6561b90f59fb5bc26c0817c511aa5e667c428
Cr-Commit-Position: refs/heads/master@{#397061}

Powered by Google App Engine
This is Rietveld 408576698