Index: Source/WebCore/rendering/RenderBlockLineLayout.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlockLineLayout.cpp (revision 133294) |
+++ Source/WebCore/rendering/RenderBlockLineLayout.cpp (working copy) |
@@ -94,13 +94,8 @@ |
#endif |
updateAvailableWidth(); |
} |
-#if ENABLE(SUBPIXEL_LAYOUT) |
bool fitsOnLine() const { return currentWidth() <= m_availableWidth; } |
bool fitsOnLine(float extra) const { return currentWidth() + extra <= m_availableWidth; } |
-#else |
- bool fitsOnLine() const { return currentWidth() <= m_availableWidth; } |
- bool fitsOnLine(float extra) const { return currentWidth() + extra <= m_availableWidth; } |
-#endif |
float currentWidth() const { return m_committedWidth + m_uncommittedWidth; } |
// FIXME: We should eventually replace these three functions by ones that work on a higher abstraction. |
@@ -177,12 +172,12 @@ |
return; |
if (newFloat->type() == RenderBlock::FloatingObject::FloatLeft) { |
- float newLeft = m_block->pixelSnappedLogicalRightForFloat(newFloat); |
+ float newLeft = m_block->logicalRightForFloat(newFloat); |
if (m_isFirstLine && m_block->style()->isLeftToRightDirection()) |
newLeft += floorToInt(m_block->textIndentOffset()); |
m_left = max<float>(m_left, newLeft); |
} else { |
- float newRight = m_block->pixelSnappedLogicalLeftForFloat(newFloat); |
+ float newRight = m_block->logicalLeftForFloat(newFloat); |
if (m_isFirstLine && !m_block->style()->isLeftToRightDirection()) |
newRight -= floorToInt(m_block->textIndentOffset()); |
m_right = min<float>(m_right, newRight); |