|
Clean up font loading
* FontLoader is mostly a wrapper to start font loads asynchronously, which appears to be a historical artifact that was only necessary for WebKit/mac/. Merge the remaining bits into RemoteFontFaceSource.
* Use FetchRequest::DeferOption to prevent font loads from starting immediately, rather than an override of Resource::load.
* Change the font load timeout timers to start when the font is first needed, not when it is requested. This ensures that the timers do not begin when a font is preloaded, which seems to be more compliant with the spec: https://tabatkins.github.io/specs/css-font-display/#timeline
BUG=
Committed: https://crrev.com/89992c023651c3d75494552a2bcff095f6d4d79f
Cr-Commit-Position: refs/heads/master@{#387061}
Total comments: 15
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+59 lines, -303 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/http/tests/webfont/css-change-in-swap-period.html
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSFontSelector.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSFontSelector.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/FontFace.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/core/css/FontLoader.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/core/css/FontLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -153 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
6 chunks |
+20 lines, -18 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/FontResource.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/FontResource.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+9 lines, -29 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/ImageResource.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/ImageResource.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/Resource.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/Resource.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
Total messages: 37 (16 generated)
|