OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 } | 1343 } |
1344 | 1344 |
1345 FloatRect borderBounds = unzoomedRect; | 1345 FloatRect borderBounds = unzoomedRect; |
1346 borderBounds.inflate(sliderThumbBorderWidth / 2.0); | 1346 borderBounds.inflate(sliderThumbBorderWidth / 2.0); |
1347 | 1347 |
1348 borderBounds.inflate(-sliderThumbBorderWidth); | 1348 borderBounds.inflate(-sliderThumbBorderWidth); |
1349 FloatSize shadowOffset(0, 1); | 1349 FloatSize shadowOffset(0, 1); |
1350 paintInfo.context->setShadow(shadowOffset, sliderThumbShadowBlur, shadowColo
r); | 1350 paintInfo.context->setShadow(shadowOffset, sliderThumbShadowBlur, shadowColo
r); |
1351 paintInfo.context->setFillColor(Color::black); | 1351 paintInfo.context->setFillColor(Color::black); |
1352 paintInfo.context->fillEllipse(borderBounds); | 1352 paintInfo.context->fillEllipse(borderBounds); |
1353 paintInfo.context->clearShadow(); | 1353 paintInfo.context->clearDrawLooper(); |
1354 | 1354 |
1355 IntRect fillBounds = enclosedIntRect(unzoomedRect); | 1355 IntRect fillBounds = enclosedIntRect(unzoomedRect); |
1356 RefPtr<Gradient> fillGradient = Gradient::create(fillBounds.minXMinYCorner()
, fillBounds.minXMaxYCorner()); | 1356 RefPtr<Gradient> fillGradient = Gradient::create(fillBounds.minXMinYCorner()
, fillBounds.minXMaxYCorner()); |
1357 fillGradient->addColorStop(0.0, fillGradientTopColor); | 1357 fillGradient->addColorStop(0.0, fillGradientTopColor); |
1358 fillGradient->addColorStop(0.52, fillGradientUpperMiddleColor); | 1358 fillGradient->addColorStop(0.52, fillGradientUpperMiddleColor); |
1359 fillGradient->addColorStop(0.52, fillGradientLowerMiddleColor); | 1359 fillGradient->addColorStop(0.52, fillGradientLowerMiddleColor); |
1360 fillGradient->addColorStop(1.0, fillGradientBottomColor); | 1360 fillGradient->addColorStop(1.0, fillGradientBottomColor); |
1361 paintInfo.context->setFillGradient(fillGradient); | 1361 paintInfo.context->setFillGradient(fillGradient); |
1362 paintInfo.context->fillEllipse(borderBounds); | 1362 paintInfo.context->fillEllipse(borderBounds); |
1363 | 1363 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1844 | 1844 |
1845 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const | 1845 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const |
1846 { | 1846 { |
1847 ControlPart part = style.appearance(); | 1847 ControlPart part = style.appearance(); |
1848 if (part == CheckboxPart || part == RadioPart) | 1848 if (part == CheckboxPart || part == RadioPart) |
1849 return style.effectiveZoom() != 1; | 1849 return style.effectiveZoom() != 1; |
1850 return false; | 1850 return false; |
1851 } | 1851 } |
1852 | 1852 |
1853 } // namespace blink | 1853 } // namespace blink |
OLD | NEW |