Index: Source/core/rendering/RenderReplaced.cpp |
diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp |
index 4602b335b3ae380412bdfbe431f1088574219879..18d08a6554fdc0ba0c4e147d2a5bb6b11776ec44 100644 |
--- a/Source/core/rendering/RenderReplaced.cpp |
+++ b/Source/core/rendering/RenderReplaced.cpp |
@@ -230,12 +230,6 @@ bool RenderReplaced::needsPreferredWidthsRecalculation() const |
return hasRelativeLogicalHeight() && style()->logicalWidth().isAuto() && !hasAutoHeightOrContainingBlockWithAutoHeight(); |
} |
-static inline bool rendererHasAspectRatio(const RenderObject* renderer) |
-{ |
- ASSERT(renderer); |
- return renderer->isImage() || renderer->isCanvas() || renderer->isVideo(); |
-} |
- |
void RenderReplaced::computeAspectRatioInformationForRenderBox(RenderBox* contentRenderer, FloatSize& constrainedSize, double& intrinsicRatio) const |
{ |
FloatSize intrinsicSize; |
@@ -326,7 +320,7 @@ void RenderReplaced::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, |
intrinsicSize = FloatSize(intrinsicLogicalWidth().toFloat(), intrinsicLogicalHeight().toFloat()); |
// Figure out if we need to compute an intrinsic ratio. |
- if (intrinsicSize.isEmpty() || !rendererHasAspectRatio(this)) |
+ if (intrinsicSize.isEmpty() || !hasAspectRatio()) |
return; |
intrinsicRatio = intrinsicSize.width() / intrinsicSize.height(); |