Index: third_party/WebKit/Source/core/paint/ThemePainterMac.mm |
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm |
index 681dcf653f1534ec380de0faf3a0c7edd40b9ab6..3ce77203793a69f3b3c955c602351d0777f5e711 100644 |
--- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm |
+++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm |
@@ -252,7 +252,7 @@ bool ThemePainterMac::paintProgressBar(const LayoutObject& layoutObject, const P |
} |
if (!paintInfo.context->contextDisabled()) |
- imageBuffer->draw(paintInfo.context, FloatRect(inflatedRect.location(), imageBuffer->size()), nullptr, SkXfermode::kSrcOver_Mode); |
+ imageBuffer->draw(paintInfo.context, FloatRect(inflatedRect.location(), FloatSize(imageBuffer->size())), nullptr, SkXfermode::kSrcOver_Mode); |
return false; |
} |
@@ -341,9 +341,9 @@ bool ThemePainterMac::paintSliderTrack(const LayoutObject& o, const PaintInfo& p |
bool isVerticalSlider = o.styleRef().appearance() == SliderVerticalPart; |
- int fillRadiusSize = (LayoutThemeMac::sliderTrackWidth - LayoutThemeMac::sliderTrackBorderWidth) / 2; |
- IntSize fillRadius(fillRadiusSize, fillRadiusSize); |
- IntRect fillBounds = enclosedIntRect(unzoomedRect); |
+ float fillRadiusSize = (LayoutThemeMac::sliderTrackWidth - LayoutThemeMac::sliderTrackBorderWidth) / 2; |
+ FloatSize fillRadius(fillRadiusSize, fillRadiusSize); |
+ FloatRect fillBounds(enclosedIntRect(unzoomedRect)); |
FloatRoundedRect fillRect(fillBounds, fillRadius, fillRadius, fillRadius, fillRadius); |
paintInfo.context->fillRoundedRect(fillRect, fillColor); |