| Index: third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| index 0e71f636fcfd525304a5ad21de938bd6d8ab5102..d3fb21bb4965fa5cbc3f17601c632912be9995ae 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| @@ -330,8 +330,8 @@ void ImageDocument::restoreImageSize(ScaleType type)
|
|
|
| DCHECK(m_imageElement->cachedImage());
|
| LayoutSize imageSize = m_imageElement->cachedImage()->imageSize(LayoutObject::shouldRespectImageOrientation(m_imageElement->layoutObject()), 1.0f);
|
| - m_imageElement->setWidth(imageSize.width());
|
| - m_imageElement->setHeight(imageSize.height());
|
| + m_imageElement->setWidth(imageSize.width().toInt());
|
| + m_imageElement->setHeight(imageSize.height().toInt());
|
|
|
| if (imageFitsInWindow())
|
| m_imageElement->removeInlineStyleProperty(CSSPropertyCursor);
|
|
|