Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

Issue 1438043012: Avoid int coercion of box-shadow args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac theme update, subpixel test Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 2c9ae64fcd0415694174c9362855c74e0022d8d5..681dcf653f1534ec380de0faf3a0c7edd40b9ab6 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
+++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
@@ -347,10 +347,10 @@ bool ThemePainterMac::paintSliderTrack(const LayoutObject& o, const PaintInfo& p
FloatRoundedRect fillRect(fillBounds, fillRadius, fillRadius, fillRadius, fillRadius);
paintInfo.context->fillRoundedRect(fillRect, fillColor);
- IntSize shadowOffset(isVerticalSlider ? 1 : 0,
- isVerticalSlider ? 0 : 1);
- int shadowBlur = 3;
- int shadowSpread = 0;
+ FloatSize shadowOffset(isVerticalSlider ? 1 : 0,
+ isVerticalSlider ? 0 : 1);
+ float shadowBlur = 3;
+ float shadowSpread = 0;
paintInfo.context->save();
paintInfo.context->drawInnerShadow(fillRect, shadowColor, shadowOffset, shadowBlur, shadowSpread);
paintInfo.context->restore();
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.cpp ('k') | third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698