skia2/experimental
Tyler Denniston df1b014005 [svg] Reapply currentColor to fill/stroke
For the scenario in color-prop-05-t:
  <g fill="currentColor" color="lime">
    <rect x="120" y="60" width="150" height="150" color="red"/>
  </g>
(rectangle should be rendered red according to CSS spec)

The sequence of events is:
  <g>
    - fInherited.fColor = lime
    - fInherited.fFill = kCurrentColor
    - commit fFill to paint (paint.setColor(lime))
    <rect>
      - fInherited.fColor = red
      - BUG: fFill not re-committed to paint because it is 'inherit'

This CL fixes the bug by recommitting to the fill and stroke paint
if the fill/stroke attribute values are currentColor.

Change-Id: Icecd498eb0122513e0241740536e239eed335ef3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/284377
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2020-04-20 16:39:31 +00:00
..
c-api-example Fix small memory leak in c-api example 2019-12-16 16:03:04 +00:00
docs runs some sample animations side by side in canvas and svg 2015-11-16 13:36:08 -08:00
documentation experimental/tools/gerrit_percent_encode 2019-08-05 16:11:45 +00:00
ffmpeg Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
minimal_ios_mtl_skia_app reformat GN files 2020-04-01 23:23:03 +00:00
Networking rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
pvg add pvg experiment 2018-11-02 15:35:21 +00:00
svg/model [svg] Reapply currentColor to fill/stroke 2020-04-20 16:39:31 +00:00
tools decs/examples: Support more fiddle types: offscreen, srgb 2020-01-30 16:31:58 +00:00
wasm-skp-debugger Revert "Revert "Revert "Revert "Don't build GL on Metal, Vulkan, Dawn, Direct3D bots"""" 2020-03-20 17:11:58 +00:00
xform Move a bunch of gpu files out of include/private and into src/gpu. 2019-06-18 14:24:42 +00:00
xps_to_png experimental/xps_to_png: pass in DPI as program argument 2016-11-14 15:39:09 +00:00