X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Floader%2Fcache%2FCachedImage.h;h=12f0694794dcc94ff25d81db9545016534a4335e;hp=a0db94dc96909e8a66103b10e509d09376817900;hb=08d1d870c1c3079dffb87d69e15b823226d8ce42;hpb=a7f0e58f976b8c42be9b16b486121fed927c283a diff --git a/Source/WebCore/loader/cache/CachedImage.h b/Source/WebCore/loader/cache/CachedImage.h index a0db94d..12f0694 100644 --- a/Source/WebCore/loader/cache/CachedImage.h +++ b/Source/WebCore/loader/cache/CachedImage.h @@ -64,7 +64,7 @@ public: std::pair brokenImage(float deviceScaleFactor) const; // Returns an image and the image's resolution scale factor. bool willPaintBrokenImage() const; - bool canRender(const RenderObject* renderer, float multiplier) { return !errorOccurred() && !imageSizeForRenderer(renderer, multiplier).isEmpty(); } + bool canRender(const RenderElement* renderer, float multiplier) { return !errorOccurred() && !imageSizeForRenderer(renderer, multiplier).isEmpty(); } void setContainerSizeForRenderer(const CachedImageClient*, const LayoutSize&, float); bool usesImageContainerSize() const; @@ -79,7 +79,7 @@ public: IntrinsicSize }; // This method takes a zoom multiplier that can be used to increase the natural size of the image by the zoom. - LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeType = UsedSize); // returns the size of the complete image. + LayoutSize imageSizeForRenderer(const RenderElement*, float multiplier, SizeType = UsedSize); // returns the size of the complete image. void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio); bool isManuallyCached() const { return m_isManuallyCached; }