Update StyleValue.cssString() to use existing methods instead of rolling our own.
All StyleValues now use toCSSValue()->cssText() instead of defining custom methods in subclasses. Conveniently, this effectively allows toCSSValue to be tested in LayoutTests. Also get rid of re-parsing unit types in SimpleLength.toCSSValue, since the code there had a bug anyway which was uncovered by the LayoutTests. BUG=545318 Review URL: https://codereview.chromium.org/1602843003 Cr-Commit-Position: refs/heads/master@{#370341}
Showing
Please register or sign in to comment