Index: Source/core/layout/line/BreakingContextInlineHeaders.h |
diff --git a/Source/core/layout/line/BreakingContextInlineHeaders.h b/Source/core/layout/line/BreakingContextInlineHeaders.h |
index 872c379a4897da50c82a8be1341df502e048a916..91acbf19d4e55136a3797e2cf1d21b37ffb20a14 100644 |
--- a/Source/core/layout/line/BreakingContextInlineHeaders.h |
+++ b/Source/core/layout/line/BreakingContextInlineHeaders.h |
@@ -372,8 +372,8 @@ inline void BreakingContext::handleFloat() |
// If it does, position it now, otherwise, position |
// it after moving to next line (in newLine() func) |
// FIXME: Bug 110372: Properly position multiple stacked floats with non-rectangular shape outside. |
- if (m_floatsFitOnLine && m_width.fitsOnLine(m_block->logicalWidthForFloat(floatingObject).toFloat(), ExcludeWhitespace)) { |
- m_block->positionNewFloatOnLine(floatingObject, m_lastFloatFromPreviousLine, m_lineInfo, m_width); |
+ if (m_floatsFitOnLine && m_width.fitsOnLine(m_block->logicalWidthForFloat(*floatingObject).toFloat(), ExcludeWhitespace)) { |
+ m_block->positionNewFloatOnLine(*floatingObject, m_lastFloatFromPreviousLine, m_lineInfo, m_width); |
if (m_lineBreak.object() == m_current.object()) { |
ASSERT(!m_lineBreak.offset()); |
m_lineBreak.increment(); |