From bd873d01b08be192ba7b48bc36d5b2f53ac3013f Mon Sep 17 00:00:00 2001 From: Leon Clarke Date: Tue, 20 Jul 2010 18:01:16 +0100 Subject: Fix http://b/issue?id=2838936 isPrefetch should return true when the resource is a prefetch, not when it isn't Change-Id: I73389e302ba7c57b6c4f6bf871f230a968d09c81 --- WebCore/loader/CachedResource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebCore/loader/CachedResource.h b/WebCore/loader/CachedResource.h index d5bb97e..909e6d1 100644 --- a/WebCore/loader/CachedResource.h +++ b/WebCore/loader/CachedResource.h @@ -126,7 +126,7 @@ public: virtual bool isImage() const { return false; } #if ENABLE(LINK_PREFETCH) - virtual bool isPrefetch() const { return type() != LinkPrefetch; } + virtual bool isPrefetch() const { return type() == LinkPrefetch; } #else virtual bool isPrefetch() const { return false; } #endif -- cgit v1.1