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

Issue 2722493002: FontFaceSet.ready should not be resolved if there's pending layouts (Closed)

Created:
3 years, 9 months ago by Kunihiko Sakamoto
Modified:
3 years, 9 months ago
Reviewers:
haraken, drott, kojii
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FontFaceSet.ready should not be resolved if there's pending layouts Currently, FontFaceSet.ready returns resolved promise if there's no loading fonts. But there may be pending stylesheet changes or layout operations, which may cause font loads. So, this patch adds a Document::updateStyleAndLayout() call in FontFaceSet::ready() before returning a resolved promise. This is a speculative fix to deflake css3/fonts/font-style-matching-* tests. BUG=516680, 610300 Review-Url: https://codereview.chromium.org/2722493002 Cr-Commit-Position: refs/heads/master@{#454845} Committed: https://chromium.googlesource.com/chromium/src/+/42bd5bf1a4db228077a4b44c70bff956470f0a75

Patch Set 1 #

Patch Set 2 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -9 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/fontfaceset-ready.html View 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
Kunihiko Sakamoto
3 years, 9 months ago (2017-02-27 09:58:02 UTC) #9
kojii
Hmm...I'm not very familiar with Promise, but isn't this updating layout when returning a Promise, ...
3 years, 9 months ago (2017-02-27 10:28:20 UTC) #10
drott
Kunihiko, thanks very much for attacking this problem. I think it will grealy help actually ...
3 years, 9 months ago (2017-02-27 12:38:49 UTC) #12
Kunihiko Sakamoto
(Added some comments in FontFaceSet::ready(), PTAL.) Thanks for the comments. I think there are two ...
3 years, 9 months ago (2017-02-28 06:07:22 UTC) #13
kojii
LGTM, understood we were talking about different cases (talked offline.) This patch fixes the problem ...
3 years, 9 months ago (2017-02-28 06:43:08 UTC) #14
Kunihiko Sakamoto
On 2017/02/28 06:43:08, kojii wrote: > LGTM, understood we were talking about different cases (talked ...
3 years, 9 months ago (2017-02-28 06:47:24 UTC) #16
haraken
LGTM on my side.
3 years, 9 months ago (2017-02-28 06:50:57 UTC) #17
drott
Thanks for the explanations, Kunihiko. I somewhat understand the explanations, but I am not 100% ...
3 years, 9 months ago (2017-02-28 07:40:40 UTC) #18
Kunihiko Sakamoto
On 2017/02/28 07:40:40, drott wrote: > Thanks for the explanations, Kunihiko. I somewhat understand the ...
3 years, 9 months ago (2017-02-28 07:50:48 UTC) #19
Kunihiko Sakamoto
On 2017/02/28 07:50:48, Kunihiko Sakamoto wrote: > On 2017/02/28 07:40:40, drott wrote: > > Thanks ...
3 years, 9 months ago (2017-02-28 07:56:39 UTC) #20
drott
On 2017/02/28 at 07:56:39, ksakamoto wrote: > On 2017/02/28 07:50:48, Kunihiko Sakamoto wrote: > > ...
3 years, 9 months ago (2017-02-28 12:00:11 UTC) #21
kojii
On 2017/02/28 at 12:00:11, drott wrote: > I think if the hypothesis that the tests ...
3 years, 9 months ago (2017-02-28 13:17:27 UTC) #22
kojii
drott@, are you happy to land this and continue the discussion on the doc and ...
3 years, 9 months ago (2017-03-03 08:04:32 UTC) #23
drott
On 2017/03/03 at 08:04:32, kojii wrote: > drott@, are you happy to land this and ...
3 years, 9 months ago (2017-03-06 09:11:23 UTC) #24
Kunihiko Sakamoto
On 2017/03/06 09:11:23, drott wrote: > On 2017/03/03 at 08:04:32, kojii wrote: > > drott@, ...
3 years, 9 months ago (2017-03-06 09:21:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2722493002/20001
3 years, 9 months ago (2017-03-06 09:22:07 UTC) #27
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 10:46:57 UTC) #30
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/42bd5bf1a4db228077a4b44c70bf...

Powered by Google App Engine
This is Rietveld 408576698