commit | 6c8314efa1b90769e98f71ef3a2a67104a0dcbc9 | [log] [tgz] |
---|---|---|
author | Tyler Denniston <tdenniston@google.com> | Thu Apr 09 14:14:10 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Apr 09 18:48:16 2020 +0000 |
tree | 2adc0e8effd85de85dc1c590f08a5e682098fc46 | |
parent | 4d932d170f3d38ce3bcd7643faf1511f24b8baa0 [diff] |
[SVG] Implement currentColor for fill and stroke The 'color' presentation attribute when set determines the value of the special color value 'currentColor'. See the color-prop-01-b test for an example. Not handled in this CL: - The color type needs to be changed to be inheritable. - currentColor should also be usable for stop-color for gradients. See <https://www.w3.org/TR/SVG11/color.html#ColorProperty> for a full list of attributes that can use currentColor. Change-Id: Icf81b5313cda688d1b6e20809b9b339f517b9ada Reviewed-on: https://skia-review.googlesource.com/c/skia/+/282638 Commit-Queue: Tyler Denniston <tdenniston@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>