| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 7a98145fd3d3cbda7665c517c36f27556b823832..5eba578bebcde92df245a3fc0252fcd5409723aa 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -407,6 +407,18 @@ bool Internals::isPreloadedBy(const String& url, Document* document) {
|
| return document->fetcher()->isPreloadedForTest(document->completeURL(url));
|
| }
|
|
|
| +bool Internals::isLoading(const String& url) {
|
| + if (!contextDocument())
|
| + return false;
|
| + const String cacheIdentifier =
|
| + contextDocument()->fetcher()->getCacheIdentifier();
|
| + Resource* resource = memoryCache()->resourceForURL(
|
| + contextDocument()->completeURL(url), cacheIdentifier);
|
| + // We check loader() here instead of isLoading(), because a multipart
|
| + // ImageResource lies isLoading() == false after the first part is loaded.
|
| + return resource && resource->loader();
|
| +}
|
| +
|
| bool Internals::isLoadingFromMemoryCache(const String& url) {
|
| if (!contextDocument())
|
| return false;
|
|
|