Implementors of CachedResource subclasses should be forced to decide if encoded data...
authorBrady Eidson <beidson@apple.com>
Thu, 25 Apr 2013 00:17:16 +0000 (00:17 +0000)
committerBrady Eidson <beidson@apple.com>
Thu, 25 Apr 2013 00:17:16 +0000 (00:17 +0000)
commitc56b83da2850dc53ebd7929d02ecadc17d037bd2
treeb41f1f270ecc4cf99d1cb6fd837be07e9d44aebe
parent8c11158201a0d6d221765ffaf5ccd2eed9122146
Implementors of CachedResource subclasses should be forced to decide if encoded data can be replaced.
https://bugs.webkit.org/show_bug.cgi?id=115140

Reviewed by Beth Dakin.

No new tests (No behavior change).

This makes mayTryReplaceEncodedData() return false in CachedResource, but overrides to true
in all CachedResource subclasses besides CachedFont (which already has an implementation).

* loader/cache/CachedCSSStyleSheet.h:
* loader/cache/CachedImage.h:
* loader/cache/CachedRawResource.h:
* loader/cache/CachedResource.h:
* loader/cache/CachedSVGDocument.h:
* loader/cache/CachedScript.h:
* loader/cache/CachedShader.h:
* loader/cache/CachedTextTrack.h:
* loader/cache/CachedXSLStyleSheet.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedCSSStyleSheet.h
Source/WebCore/loader/cache/CachedImage.h
Source/WebCore/loader/cache/CachedRawResource.h
Source/WebCore/loader/cache/CachedResource.h
Source/WebCore/loader/cache/CachedSVGDocument.h
Source/WebCore/loader/cache/CachedScript.h
Source/WebCore/loader/cache/CachedShader.h
Source/WebCore/loader/cache/CachedTextTrack.h
Source/WebCore/loader/cache/CachedXSLStyleSheet.h