Index: Source/core/html/HTMLImageElement.cpp |
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp |
index 095b4fcf749bfb4eb6b59c74dad0ad83d9b4861a..6ea8fba7eb844baf154c3181ebd589b59981b4db 100644 |
--- a/Source/core/html/HTMLImageElement.cpp |
+++ b/Source/core/html/HTMLImageElement.cpp |
@@ -421,7 +421,7 @@ int HTMLImageElement::width(bool ignorePendingStylesheets) |
else |
document().updateLayout(); |
- RenderBox* box = renderBox(); |
+ LayoutBox* box = layoutBox(); |
return box ? adjustForAbsoluteZoom(box->contentBoxRect().pixelSnappedWidth(), box) : 0; |
} |
@@ -444,7 +444,7 @@ int HTMLImageElement::height(bool ignorePendingStylesheets) |
else |
document().updateLayout(); |
- RenderBox* box = renderBox(); |
+ LayoutBox* box = layoutBox(); |
return box ? adjustForAbsoluteZoom(box->contentBoxRect().pixelSnappedHeight(), box) : 0; |
} |