DescriptionFix promise resolution of FontFaceSet#load()
This patch changes the promise resolution logic of FontFaceSet#load()
to match the spec [1], in the following ways:
1. Rejects the promise with SyntaxError if the font argument fails to
parse.
2. Otherwise, the promise should be resolved in the same way as
Promise.all() called with all of the results of FontFace#load() of
the matching font faces, i.e.
2.1. Resolves the promise with an array of the matching font faces when
all the fonts are loaded, or
2.2. Rejects the promise with the rejection value of the first failed
font face.
The new ScriptPromiseResolver Vector overloads need NoInline version of
v8Array, since existing v8Array() uses toV8 inside and hence requires
generated headers (see crbug.com/321569 for details of a similar issue).
[1] http://dev.w3.org/csswg/css-font-loading/#font-face-set-load
TEST=fast/css/fontfaceset-load.html
BUG=53213
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169611
Patch Set 1 : #
Total comments: 7
Patch Set 2 : naming #
Messages
Total messages: 14 (0 generated)
|