Commit 964d84c8 authored by andersca's avatar andersca
Browse files

Try fixing the buildbot build.

        
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocument::resizeImageToFit):
        (WebCore::ImageDocument::imageClicked):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 622da3cf
2007-05-24 Anders Carlsson <andersca@apple.com>
Try fixing the buildbot build.
* loader/ImageDocument.cpp:
(WebCore::ImageDocument::resizeImageToFit):
(WebCore::ImageDocument::imageClicked):
2007-05-24 Sam Weinig <sam@webkit.org> 2007-05-24 Sam Weinig <sam@webkit.org>
   
Reviewed by Darin. Reviewed by Darin.
...@@ -177,8 +177,8 @@ void ImageDocument::resizeImageToFit() ...@@ -177,8 +177,8 @@ void ImageDocument::resizeImageToFit()
IntSize imageSize = m_imageElement->cachedImage()->imageSize(); IntSize imageSize = m_imageElement->cachedImage()->imageSize();
float scale = this->scale(); float scale = this->scale();
m_imageElement->setWidth(imageSize.width() * scale); m_imageElement->setWidth(static_cast<int>(imageSize.width() * scale));
m_imageElement->setHeight(imageSize.height() * scale); m_imageElement->setHeight(static_cast<int>(imageSize.height() * scale));
ExceptionCode ec; ExceptionCode ec;
m_imageElement->style()->setProperty("cursor", "-webkit-zoom-in", ec); m_imageElement->style()->setProperty("cursor", "-webkit-zoom-in", ec);
...@@ -200,8 +200,8 @@ void ImageDocument::imageClicked(int x, int y) ...@@ -200,8 +200,8 @@ void ImageDocument::imageClicked(int x, int y)
float scale = this->scale(); float scale = this->scale();
int scrollX = x / scale - (float)frame()->view()->width() / 2; int scrollX = static_cast<int>(x / scale - (float)frame()->view()->width() / 2);
int scrollY = y / scale - (float)frame()->view()->height() / 2; int scrollY = static_cast<int>(y / scale - (float)frame()->view()->height() / 2);
frame()->view()->setContentsPos(scrollX, scrollY); frame()->view()->setContentsPos(scrollX, scrollY);
} }
......
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