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

Issue 2340273002: Fix FontFaceSet state getting stuck at loading (Closed)

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

Description

Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached, m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 Committed: https://crrev.com/035a2a978b7ec4f87439c355af25941fb0b9cfca Cr-Commit-Position: refs/heads/master@{#421114}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Separate test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -65 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html View 1 1 chunk +32 lines, -29 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute-expected.txt View 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontFace.cpp View 1 chunk +1 line, -15 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.h View 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.cpp View 4 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 43 (30 generated)
Kunihiko Sakamoto
Toyoshima-san, PTAL?
4 years, 3 months ago (2016-09-16 02:30:20 UTC) #19
Takashi Toyoshima
In the CL description, > @font-face rule is detached m_segmentedFontFace is null. Does this mean ...
4 years, 3 months ago (2016-09-16 05:07:00 UTC) #20
Kunihiko Sakamoto
On 2016/09/16 05:07:00, toyoshim wrote: > In the CL description, > > @font-face rule is ...
4 years, 3 months ago (2016-09-16 05:39:30 UTC) #22
Takashi Toyoshima
lgtm with one oprional request on test.
4 years, 3 months ago (2016-09-16 05:40:10 UTC) #23
Takashi Toyoshima
Oops, forgot to publish. https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html File third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html (right): https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html#newcode1 third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html:1: <!DOCTYPE html> I slightly prefer ...
4 years, 3 months ago (2016-09-16 05:40:50 UTC) #24
Kunihiko Sakamoto
+kouhei for OWNERs review https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html File third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html (right): https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html#newcode1 third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html:1: <!DOCTYPE html> On 2016/09/16 05:40:50, ...
4 years, 3 months ago (2016-09-20 02:27:25 UTC) #30
Kunihiko Sakamoto
kouhei@: ping?
4 years, 2 months ago (2016-09-26 08:49:51 UTC) #31
kouhei (in TOK)
lgtm
4 years, 2 months ago (2016-09-26 09:57:27 UTC) #32
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/2340273002/60001
4 years, 2 months ago (2016-09-27 01:16:20 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/148663)
4 years, 2 months ago (2016-09-27 04:18:11 UTC) #37
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/2340273002/60001
4 years, 2 months ago (2016-09-27 04:20:46 UTC) #39
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 2 months ago (2016-09-27 05:18:44 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 05:21:54 UTC) #43
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/035a2a978b7ec4f87439c355af25941fb0b9cfca
Cr-Commit-Position: refs/heads/master@{#421114}

Powered by Google App Engine
This is Rietveld 408576698