| Index: third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/FontResource.cpp b/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| index 2de0a247cda364998c55aca696d0456f8f37c313..fd9bf9e757ba7a0cd2e0e7e211a000a6f26a5b9d 100644
|
| --- a/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| @@ -175,4 +175,16 @@ void FontResource::checkNotify() {
|
| Resource::checkNotify();
|
| }
|
|
|
| +bool FontResource::isLowPriorityLoadingAllowedForRemoteFont() const {
|
| + DCHECK(!url().protocolIsData());
|
| + DCHECK(!isLoaded());
|
| + ResourceClientWalker<FontResourceClient> walker(clients());
|
| + while (FontResourceClient* client = walker.next()) {
|
| + if (!client->isLowPriorityLoadingAllowedForRemoteFont()) {
|
| + return false;
|
| + }
|
| + }
|
| + return true;
|
| +}
|
| +
|
| } // namespace blink
|
|
|