Handle the DOMString case of CRC2D.fillStyle/strokeStyle correctly

Non-CanvasGradient/CanvasPattern objects would not be ToString(v)'d and
have the result assigned/parsed as a color-string.
Implement this by checking for CanvasGradient/CanvasPattern first,
and then invole ToString() on the value.

BUG=364008

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171852 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: 09f5a50716f622c0911283677cc9fa55394eb6aa
  1. third_party/