DescriptionFixed 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 #
Depends on Patchset: Messages
Total messages: 14 (4 generated)
|