[css-typed-om] Refactor CSSStyleImageValue to prepare for gradients.
Currently CSSStyleImageValue implements the CSSImageValue class in Typed OM. CSSImageValue can be anything that's an <image> i.e. a <url>, <gradient>, or <cross-fade>. However, the current implementation of CSSStyleImageValue only really works for <url>s. This patch moves <url> specific logic into CSSURLImageValue. This prepares for the implementation of <gradient> and <cross-fade>, which will be subclasses of CSSStyleImageValue. We also do some cleanup work (e.g. making things const, moving code in header to cpp). Bug: 803680 Change-Id: I848b3eab5dbbcb9bbe7f0aea0d377497f63bfda3 Reviewed-on: https://chromium-review.googlesource.com/882786 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#533949}
Showing
Please register or sign in to comment