Allow parsing SVG <paint> and <color> properties in the color fast-path

The following properties:

  fill
  flood-color
  lighting-color
  stop-color
  stroke

Will all accept a single <color> as a valid value. This means they can
be handled by the <color> parsing fast-path, which reduces the parsing
cost for these properties which often appear as presentation attributes.

Review URL: https://codereview.chromium.org/1221303013

git-svn-id: svn://svn.chromium.org/blink/trunk@199022 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed