Index: Source/core/layout/LayoutImage.cpp |
diff --git a/Source/core/layout/LayoutImage.cpp b/Source/core/layout/LayoutImage.cpp |
index 5647f5188495f67638f45ac78e8347978175b486..739d55a5375b80661099cce2b448fb5a99d48f73 100644 |
--- a/Source/core/layout/LayoutImage.cpp |
+++ b/Source/core/layout/LayoutImage.cpp |
@@ -338,7 +338,7 @@ void LayoutImage::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, dou |
if (intrinsicSize.isEmpty() && (m_imageResource->imageHasRelativeWidth() || m_imageResource->imageHasRelativeHeight())) { |
LayoutObject* containingBlock = isOutOfFlowPositioned() ? container() : this->containingBlock(); |
if (containingBlock->isBox()) { |
- RenderBox* box = toRenderBox(containingBlock); |
+ LayoutBox* box = toLayoutBox(containingBlock); |
intrinsicSize.setWidth(box->availableLogicalWidth().toFloat()); |
intrinsicSize.setHeight(box->availableLogicalHeight(IncludeMarginBorderPadding).toFloat()); |
} |
@@ -358,7 +358,7 @@ bool LayoutImage::needsPreferredWidthsRecalculation() const |
return embeddedContentBox(); |
} |
-RenderBox* LayoutImage::embeddedContentBox() const |
+LayoutBox* LayoutImage::embeddedContentBox() const |
{ |
if (!m_imageResource) |
return 0; |