| Index: third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| diff --git a/third_party/WebKit/Source/core/layout/line/LineWidth.h b/third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| index 347cfd6ec193b482fdc1fbb08a74d7ae4f29b78a..4c0d4696f5f5deaeda20326690a5214f4426eac9 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| +++ b/third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| @@ -48,12 +48,12 @@ public:
|
|
|
| bool fitsOnLine() const
|
| {
|
| - return LayoutUnit::fromFloatFloor(currentWidth()) <= m_availableWidth;
|
| + return LayoutUnit::fromFloatFloor(currentWidth()) <= m_availableWidth + LayoutUnit::epsilon();
|
| }
|
| bool fitsOnLine(float extra) const
|
| {
|
| float totalWidth = currentWidth() + extra;
|
| - return LayoutUnit::fromFloatFloor(totalWidth) <= m_availableWidth;
|
| + return LayoutUnit::fromFloatFloor(totalWidth) <= m_availableWidth + LayoutUnit::epsilon();
|
| }
|
| bool fitsOnLine(float extra, WhitespaceTreatment whitespaceTreatment) const
|
| {
|
|
|