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

Issue 2494243003: Set WebFont priority to very low if the network is detected to be slow (Closed)

Created:
4 years, 1 month ago by tbansal1
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set WebFont priority to very low if the network is detected to be slow When the network is detected to be slow, Blink immediately changes to using fallback font. This CL changes the Blink resource priority of the WebFont resource to VeryLow since the font is no longer required for text paint. BUG=665504 Committed: https://crrev.com/5ea0c57befbcadba648b21447e83d5d4a280c885 Cr-Commit-Position: refs/heads/master@{#432254}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed toyoshim comments #

Total comments: 5

Patch Set 3 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (23 generated)
tbansal1
toyoshim: ptal.
4 years, 1 month ago (2016-11-12 02:21:13 UTC) #7
Takashi Toyoshima
+pmeenan for resource fetcher prority, +hiroshige for fetch/ caller usages.
4 years, 1 month ago (2016-11-14 03:45:10 UTC) #11
Takashi Toyoshima
Here are some comments in terms of WebFonts. +ksakamoto just in case. https://codereview.chromium.org/2494243003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp ...
4 years, 1 month ago (2016-11-14 03:53:56 UTC) #13
Pat Meenan
The priority change itself LGTM but odds are that the request will already be in-flight ...
4 years, 1 month ago (2016-11-14 14:54:48 UTC) #15
tbansal1
toyoshim: ptal. thanks. https://codereview.chromium.org/2494243003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2494243003/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode77 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:77: if (!font->url().protocolIsData() && !font->isLoaded() && On ...
4 years, 1 month ago (2016-11-14 20:12:08 UTC) #18
tbansal1
On 2016/11/14 14:54:48, Pat Meenan wrote: > The priority change itself LGTM but odds are ...
4 years, 1 month ago (2016-11-14 20:13:49 UTC) #19
Pat Meenan
On 2016/11/14 20:13:49, tbansal1 wrote: > On 2016/11/14 14:54:48, Pat Meenan wrote: > > The ...
4 years, 1 month ago (2016-11-14 20:22:14 UTC) #20
Takashi Toyoshima
Patch Set 2 looks very nice. WebFonts LGTM. Pat Meenan: Because WebFonts loading is deferred ...
4 years, 1 month ago (2016-11-15 02:22:42 UTC) #21
tbansal1
kinuko: ptal at * for OWNERS approval. Thanks.
4 years, 1 month ago (2016-11-15 02:35:59 UTC) #23
Takashi Toyoshima
To anyone who knows, I have a question not about this CL, but for related ...
4 years, 1 month ago (2016-11-15 03:42:40 UTC) #24
kinuko
lgtm % nit https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.h File third_party/WebKit/Source/core/fetch/FontResource.h (right): https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.h#newcode122 third_party/WebKit/Source/core/fetch/FontResource.h:122: virtual bool isLowPriorityLoadingAllowedForRemoteFont() const { return ...
4 years, 1 month ago (2016-11-15 05:43:48 UTC) #25
kinuko
On 2016/11/15 03:42:40, toyoshim wrote: > To anyone who knows, I have a question not ...
4 years, 1 month ago (2016-11-15 05:45:59 UTC) #26
hiroshige
https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.cpp File third_party/WebKit/Source/core/fetch/FontResource.cpp (right): https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.cpp#newcode180 third_party/WebKit/Source/core/fetch/FontResource.cpp:180: assert(!isLoaded()); Please use DCHECK() instead of assert().
4 years, 1 month ago (2016-11-15 06:05:41 UTC) #27
tbansal1
hiroshige, ksakamato: ptal. Thanks. https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.cpp File third_party/WebKit/Source/core/fetch/FontResource.cpp (right): https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.cpp#newcode180 third_party/WebKit/Source/core/fetch/FontResource.cpp:180: assert(!isLoaded()); On 2016/11/15 06:05:41, hiroshige ...
4 years, 1 month ago (2016-11-15 08:17:04 UTC) #28
Kunihiko Sakamoto
lgtm https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.h File third_party/WebKit/Source/core/fetch/FontResource.h (right): https://codereview.chromium.org/2494243003/diff/60001/third_party/WebKit/Source/core/fetch/FontResource.h#newcode122 third_party/WebKit/Source/core/fetch/FontResource.h:122: virtual bool isLowPriorityLoadingAllowedForRemoteFont() const { return true; } ...
4 years, 1 month ago (2016-11-15 09:34:53 UTC) #29
hiroshige
lgtm
4 years, 1 month ago (2016-11-15 09:58:08 UTC) #30
tbansal1
Thanks everybody for the review.
4 years, 1 month ago (2016-11-15 20:18:49 UTC) #38
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/2494243003/40002
4 years, 1 month ago (2016-11-15 20:19:07 UTC) #39
commit-bot: I haz the power
Committed patchset #3 (id:40002)
4 years, 1 month ago (2016-11-15 20:55:22 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 21:00:42 UTC) #43
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5ea0c57befbcadba648b21447e83d5d4a280c885
Cr-Commit-Position: refs/heads/master@{#432254}

Powered by Google App Engine
This is Rietveld 408576698