Index: Source/WebCore/rendering/RenderBlockLineLayout.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlockLineLayout.cpp (revision 118868) |
+++ Source/WebCore/rendering/RenderBlockLineLayout.cpp (working copy) |
@@ -1499,7 +1499,6 @@ |
else if (layoutState.isFullLayout() || o->needsLayout()) { |
// Replaced elements |
toRenderBox(o)->dirtyLineBoxes(layoutState.isFullLayout()); |
- o->layoutIfNeeded(); |
} |
} else if (o->isText() || (o->isRenderInline() && !walker.atEndOfInline())) { |
if (!o->isText()) |
@@ -2269,6 +2268,7 @@ |
width.addUncommittedWidth(borderPaddingMarginStart(flowBox) + borderPaddingMarginEnd(flowBox)); |
} else if (current.m_obj->isReplaced()) { |
RenderBox* replacedBox = toRenderBox(current.m_obj); |
+ replacedBox->layoutIfNeeded(); |
// Break on replaced elements if either has normal white-space. |
if ((autoWrap || RenderStyle::autoWrap(lastWS)) && (!current.m_obj->isImage() || allowImagesToBreak)) { |