| Index: third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp b/third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp
|
| index 6212642cada8bfb2383a3532d4e93c71c47b586e..467dcf20f5b07834a80987fdaf67240b8d428e27 100644
|
| --- a/third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp
|
| @@ -20,12 +20,12 @@ static int computeEdgeWidth(const BorderImageLength& borderSlice,
|
| return borderSlice.number() * borderSide;
|
| if (borderSlice.length().isAuto())
|
| return imageSide;
|
| - return valueForLength(borderSlice.length(), LayoutUnit(boxExtent)).toInt();
|
| + return valueForLength(borderSlice.length(), LayoutUnit(boxExtent)).round();
|
| }
|
|
|
| static int computeEdgeSlice(const Length& slice, int maximum) {
|
| return std::min<int>(maximum,
|
| - valueForLength(slice, LayoutUnit(maximum)).toInt());
|
| + valueForLength(slice, LayoutUnit(maximum)).round());
|
| }
|
|
|
| NinePieceImageGrid::NinePieceImageGrid(const NinePieceImage& ninePieceImage,
|
|
|