Commit b634e70a authored by bdakin@apple.com's avatar bdakin@apple.com

Attempted Leopard build fix.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::paintReplaced):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::drawPlatformResizerImage):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b49bc3da
2011-09-09 Beth Dakin <bdakin@apple.com>
Attempted Leopard build fix.
* rendering/RenderImage.cpp:
(WebCore::RenderImage::paintReplaced):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::drawPlatformResizerImage):
2011-09-09 Beth Dakin <bdakin@apple.com>
Fix for https://bugs.webkit.org/show_bug.cgi?id=67819
......@@ -275,7 +275,7 @@ void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf
image = m_imageResource->cachedImage()->brokenImage(deviceScaleFactor);
IntSize imageSize = image->size();
if (deviceScaleFactor >= 2)
imageSize.scale(0.5);
imageSize.scale(0.5f);
// Center the error image, accounting for border and padding.
LayoutUnit centerX = (usableWidth - imageSize.width()) / 2;
if (centerX < 0)
......
......@@ -2425,7 +2425,7 @@ void RenderLayer::drawPlatformResizerImage(GraphicsContext* context, LayoutRect
DEFINE_STATIC_LOCAL(Image*, resizeCornerImageHiRes, (Image::loadPlatformResource("textAreaResizeCorner@2x").leakRef()));
resizeCornerImage = resizeCornerImageHiRes;
cornerResizerSize = resizeCornerImage->size();
cornerResizerSize.scale(0.5);
cornerResizerSize.scale(0.5f);
} else {
DEFINE_STATIC_LOCAL(Image*, resizeCornerImageLoRes, (Image::loadPlatformResource("textAreaResizeCorner").leakRef()));
resizeCornerImage = resizeCornerImageLoRes;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment