[CSSTypedOM] Computed StylePropertyMap use ComputedStyle for Lengths
Makes Typed CSSOM Computed StylePropertyMap values reflect computed
style values instead of resolved style values (as are returned by
getComputedStyle) for some length-type properties (top, left, bottom,
right, width, & height).
For all other properties we get a value from
ComputedStyleCSSValueMapping::get, and convert it to a CSSStyleValue
using StyleValueFactory. These values may have undergone zoom-
adjustment and other alterations in ComputedStyleCSSValueMapping. I
may do a follow-up patch to add an option to
ComputedStyleCSSValueMapping::get for retrieving raw values.
We considered returning an CSSUnsupportedValue object (with cssText
from ComputedStyleCSSValueMapping) for unsupported properties. However
the custom paint code is already relying on this API, and changing to
CSSUnsupportedValues broke some of their layout tests. I've decided to
leave the CSSStyleValues in place for now as a best approximation to
true computed style.
BUG=
648495
Review-Url:
https://codereview.chromium.org/2403423002
Cr-Commit-Position: refs/heads/master@{#446731}
Committed:
https://chromium.googlesource.com/chromium/src/+/738869d74b447a741a2e8a5cb95f5c49e12459f0