WebKitCSSMatrix: 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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@191865 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 0352f60f5a43ae4bd63928726cca2f9d9d6498e0
  1. third_party/