Use is<>() / downcast<>() for CachedResource subclasses
Created attachment 239293 [details] Patch
Comment on attachment 239293 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=239293&action=review > Source/WebCore/loader/cache/CachedResourceLoader.cpp:708 > + CachedImage& image = downcast<CachedImage>(*resource); > + image.load(this, defaultCachedResourceOptions()); Darin would probably prefer this on one line. Personally I like the named temporary here. Your call. > Source/WebKit/mac/Misc/WebCache.mm:205 > if (!cachedResource || !cachedResource->isImage()) Why keep this?
Comment on attachment 239293 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=239293&action=review >> Source/WebCore/loader/cache/CachedResourceLoader.cpp:708 >> + image.load(this, defaultCachedResourceOptions()); > > Darin would probably prefer this on one line. Personally I like the named temporary here. > > Your call. Will drop the variable. >> Source/WebKit/mac/Misc/WebCache.mm:205 >> if (!cachedResource || !cachedResource->isImage()) > > Why keep this? I missed it, will use is<>()
Created attachment 239304 [details] Patch
Comment on attachment 239304 [details] Patch Clearing flags on attachment: 239304 Committed r174333: <http://trac.webkit.org/changeset/174333>
All reviewed patches have been landed. Closing bug.