Chromium Code Reviews| Index: Source/core/rendering/RenderBlock.cpp |
| diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
| index 5d36ebccf51b3d5aa06284cefd5aea683167e0f2..bd97c4134bab6457a036f9cab487852a55c5b04d 100644 |
| --- a/Source/core/rendering/RenderBlock.cpp |
| +++ b/Source/core/rendering/RenderBlock.cpp |
| @@ -6102,11 +6102,10 @@ void RenderBlock::computeInlinePreferredLogicalWidths(LayoutUnit& minLogicalWidt |
| } |
| // Add in text-indent. This is added in only once. |
| - LayoutUnit ti = 0; |
| if (!addedTextIndent && !child->isFloating()) { |
| - ti = textIndent; |
| - childMin += ti.ceilToFloat(); |
| - childMax += ti.ceilToFloat(); |
| + float ti = textIndent.ceilToFloat(); |
|
Julien - ping for review
2013/06/06 19:46:18
Let's kill this abbreviation while at it and have
|
| + childMin += ti; |
| + childMax += ti; |
| if (childMin < 0) |
| textIndent = adjustFloatForSubPixelLayout(childMin); |