Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/BoxPainter.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
| index d5283b61c3b706ed723fee26a349873dd6775d51..5e677c920e09b98bb7f6c2b5faab987c19a8ae9b 100644 |
| --- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
| +++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
| @@ -278,7 +278,8 @@ FloatRoundedRect getBackgroundRoundedRect(const LayoutObject& obj, const LayoutR |
| { |
| FloatRoundedRect border = obj.style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge, includeLogicalRightEdge); |
| if (box && (box->nextLineBox() || box->prevLineBox())) { |
| - FloatRoundedRect segmentBorder = obj.style()->getRoundedBorderFor(LayoutRect(0, 0, inlineBoxWidth, inlineBoxHeight), |
| + // TODO(crbug.com/638981): Are the conversions to int (in LayoutRect(0, 0, ...)) intentional? |
|
Stephen Chennney
2016/08/22 17:46:10
Yes, in this case I believe they are.
Xianzhu
2016/08/22 18:14:37
Done.
|
| + FloatRoundedRect segmentBorder = obj.style()->getRoundedBorderFor(LayoutRect(0, 0, inlineBoxWidth.toInt(), inlineBoxHeight.toInt()), |
| includeLogicalLeftEdge, includeLogicalRightEdge); |
| border.setRadii(segmentBorder.getRadii()); |
| } |