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 e27b590d4d9b9a34d3427d59e66c839501569849..2e8a79b3225219ee154d28640ee59235f694afe4 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
@@ -370,10 +370,10 @@ FloatRoundedRect backgroundRoundedRectAdjustedForBleedAvoidance( |
} |
} |
- FloatRectOutsets insets(-fractionalInset * edges[BSTop].width, |
- -fractionalInset * edges[BSRight].width, |
- -fractionalInset * edges[BSBottom].width, |
- -fractionalInset * edges[BSLeft].width); |
+ FloatRectOutsets insets(-fractionalInset * edges[BSTop].width(), |
+ -fractionalInset * edges[BSRight].width(), |
+ -fractionalInset * edges[BSBottom].width(), |
+ -fractionalInset * edges[BSLeft].width()); |
FloatRoundedRect backgroundRoundedRect = getBackgroundRoundedRect( |
obj, borderRect, box, boxSize.width(), boxSize.height(), |
@@ -656,8 +656,8 @@ void BoxPainter::paintFillLayer(const LayoutBoxModelObject& obj, |
clipToBorder.emplace(obj, paintInfo, rect, border, ApplyToContext); |
} |
- int bLeft = info.includeLeftEdge ? obj.borderLeft() : 0; |
- int bRight = info.includeRightEdge ? obj.borderRight() : 0; |
+ LayoutUnit bLeft = info.includeLeftEdge ? obj.borderLeft() : LayoutUnit(); |
+ LayoutUnit bRight = info.includeRightEdge ? obj.borderRight() : LayoutUnit(); |
LayoutUnit pLeft = info.includeLeftEdge ? obj.paddingLeft() : LayoutUnit(); |
LayoutUnit pRight = info.includeRightEdge ? obj.paddingRight() : LayoutUnit(); |