summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-07-20 18:01:16 +0100
committerLeon Clarke <leonclarke@google.com>2010-07-20 18:01:16 +0100
commitbd873d01b08be192ba7b48bc36d5b2f53ac3013f (patch)
tree219c61600492f24507b340e82b552119531f7d85
parenta726fd8c3a7e0dfcee33d35d62cc323599f9a395 (diff)
downloadexternal_webkit-bd873d01b08be192ba7b48bc36d5b2f53ac3013f.zip
external_webkit-bd873d01b08be192ba7b48bc36d5b2f53ac3013f.tar.gz
external_webkit-bd873d01b08be192ba7b48bc36d5b2f53ac3013f.tar.bz2
Fix http://b/issue?id=2838936
isPrefetch should return true when the resource is a prefetch, not when it isn't Change-Id: I73389e302ba7c57b6c4f6bf871f230a968d09c81
-rw-r--r--WebCore/loader/CachedResource.h2
1 files changed, 1 insertions, 1 deletions
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