DescriptionWebKitCSSMatrix: Avoid crash resolving relative lengths.
The initial styles created to resolve lengths did not properly construct
a font which caused a crash trying to resolve 'ex' and 'ch' units. Call
Font::update() to construct a dummy font.
There is no document here to the deduce the initial font from. What to do
with relative lengths and percentages has been discussed for the
standardization of DOMMatrix, and the current draft says only absolute
lengths should be allowed [1].
I chose not to try to align with that as WebKitCSSMatrix is a proprietary
api. FWIW, viewport relative units were already resolved against an emtpy
viewport.
[1] http://dev.w3.org/fxtf/geometry/#dommatrix-constructors
R=leviw@chromium.org
BUG=414145
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191865
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|