| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 0509861ed4250a146a996307d3d1bf6fce0cfbae..e6eee6b7e2536cd7b8665164b22a20ffec4cf593 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -320,7 +320,13 @@ unsigned Internals::hitTestCount(Document* doc, ExceptionState& exceptionState)
|
|
|
| bool Internals::isPreloaded(const String& url)
|
| {
|
| - Document* document = contextDocument();
|
| + return isPreloadedBy(url, contextDocument());
|
| +}
|
| +
|
| +bool Internals::isPreloadedBy(const String& url, Document* document)
|
| +{
|
| + if (!document)
|
| + return false;
|
| return document->fetcher()->isPreloaded(document->completeURL(url));
|
| }
|
|
|
|
|