| Index: Source/core/layout/LayoutRubyBase.cpp
|
| diff --git a/Source/core/layout/LayoutRubyBase.cpp b/Source/core/layout/LayoutRubyBase.cpp
|
| index ec3f8690906ddcdf7cafd41e7406f254f401f02e..15536ded2c2b4077b74930fe3bd06a2dfa0c0240 100644
|
| --- a/Source/core/layout/LayoutRubyBase.cpp
|
| +++ b/Source/core/layout/LayoutRubyBase.cpp
|
| @@ -134,14 +134,14 @@ ETextAlign LayoutRubyBase::textAlignmentForLine(bool /* endsWithSoftBreak */) co
|
| return JUSTIFY;
|
| }
|
|
|
| -void LayoutRubyBase::adjustInlineDirectionLineBounds(unsigned expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const
|
| +void LayoutRubyBase::adjustInlineDirectionLineBounds(unsigned expansionOpportunityCount, LayoutUnit& logicalLeft, LayoutUnit& logicalWidth) const
|
| {
|
| int maxPreferredLogicalWidth = this->maxPreferredLogicalWidth();
|
| if (maxPreferredLogicalWidth >= logicalWidth)
|
| return;
|
|
|
| // Inset the ruby base by half the inter-ideograph expansion amount.
|
| - float inset = (logicalWidth - maxPreferredLogicalWidth) / (expansionOpportunityCount + 1);
|
| + LayoutUnit inset = (logicalWidth - maxPreferredLogicalWidth) / (expansionOpportunityCount + 1);
|
|
|
| logicalLeft += inset / 2;
|
| logicalWidth -= inset;
|
|
|