RenderImageResource::hasImage() returns whether the image resource has a cached image. CachedImage::hasImage() returns whether a cached image has an image. Various codepaths do various checks. Here are two examples: http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderImage.cpp?rev=146279#L378 RenderImage checks hasImage(), then checks if the image is null. http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/svg/RenderSVGImage.cpp#L118 RenderSVGImage checks hasImage() but does not check for null or nullimage, and will pass a null image to context->drawImage() This isn't easy to understand; we should clean this up.