Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 23717059: [Font Load Events] Implement FontFaceSet methods (Closed)

Created:
7 years, 3 months ago by Kunihiko Sakamoto
Modified:
7 years, 3 months ago
Reviewers:
yhirano, eseidel
CC:
blink-reviews, dglazkov+blink, apavlov+blink_chromium.org, do-not-use, darktears
Visibility:
Public.

Description

[Font Load Events] Implement FontFaceSet methods * A new method match() returns font faces that match a given font string * checkFont() is renamed to check() * loadFont() is translated to load(), which returns Promise that fulfills when all loads complete * notifyWhenFontsReady() is translated to ready(), which returns Promise * Boolean 'loading' attribute is changed to string 'status' attribute spec: http://dev.w3.org/csswg/css-font-load-events/#FontFaceSet-interface BUG=53213 TEST=fast/css Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158006

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -126 lines) Patch
M LayoutTests/fast/css/fontface-properties.html View 2 chunks +1 line, -11 lines 0 comments Download
M LayoutTests/fast/css/fontloader-css-change-in-callback.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/fontloader-download-error.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/fontloader-events.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/fontloader-loadingdone.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/fontloader-loadingdone-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/fontloader-multiple-faces.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/fontloader-multiple-faces-download-error.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/fontloader-multiple-faces-download-error-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/fontloader-multiple-faces-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/fontloader-multiple-families.html View 2 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/css/fontloader-multiple-families-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/webfont/fontloader-loading-attribute.html View 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/http/tests/webfont/fontloader-loading-attribute-expected.txt View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFace.h View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFace.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/css/FontFaceSet.h View 1 2 5 chunks +19 lines, -10 lines 0 comments Download
M Source/core/css/FontFaceSet.cpp View 1 2 9 chunks +131 lines, -63 lines 0 comments Download
M Source/core/css/FontFaceSet.idl View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Kunihiko Sakamoto
yhirano, could you take a look at FontFaceSet.cpp to see if I am using Promise ...
7 years, 3 months ago (2013-09-18 06:04:31 UTC) #1
yhirano
https://codereview.chromium.org/23717059/diff/4001/Source/core/css/FontFaceSet.cpp File Source/core/css/FontFaceSet.cpp (right): https://codereview.chromium.org/23717059/diff/4001/Source/core/css/FontFaceSet.cpp#newcode276 Source/core/css/FontFaceSet.cpp:276: ScriptPromise promise = resolver->promise(); You should call ScriptPromiseResolver::detachPromise if ...
7 years, 3 months ago (2013-09-18 11:49:44 UTC) #2
Kunihiko Sakamoto
Thanks for the comments. PTAL https://codereview.chromium.org/23717059/diff/4001/Source/core/css/FontFaceSet.cpp File Source/core/css/FontFaceSet.cpp (right): https://codereview.chromium.org/23717059/diff/4001/Source/core/css/FontFaceSet.cpp#newcode276 Source/core/css/FontFaceSet.cpp:276: ScriptPromise promise = resolver->promise(); ...
7 years, 3 months ago (2013-09-19 01:14:25 UTC) #3
yhirano
lgtm
7 years, 3 months ago (2013-09-19 04:00:15 UTC) #4
Kunihiko Sakamoto
Thank you Hirano-san. Eric, could you please take a look?
7 years, 3 months ago (2013-09-19 04:03:33 UTC) #5
eseidel
I'm not a promises expert, but otherwise lgtm. https://codereview.chromium.org/23717059/diff/18001/Source/core/css/CSSSegmentedFontFace.cpp File Source/core/css/CSSSegmentedFontFace.cpp (right): https://codereview.chromium.org/23717059/diff/18001/Source/core/css/CSSSegmentedFontFace.cpp#newcode199 Source/core/css/CSSSegmentedFontFace.cpp:199: Vector<RefPtr<FontFace> ...
7 years, 3 months ago (2013-09-19 04:11:18 UTC) #6
Kunihiko Sakamoto
Thank you Eric for the quick turnaround! I got lgtm from a promises expert (yhirano) ...
7 years, 3 months ago (2013-09-19 04:49:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ksakamoto@chromium.org/23717059/28001
7 years, 3 months ago (2013-09-19 04:50:03 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-19 06:08:23 UTC) #9
Message was sent while issue was closed.
Change committed as 158006

Powered by Google App Engine
This is Rietveld 408576698