| 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 27 matching lines...) Expand all Loading... |
| 38 #import "core/rendering/RenderLayer.h" | 38 #import "core/rendering/RenderLayer.h" |
| 39 #import "core/rendering/RenderMedia.h" | 39 #import "core/rendering/RenderMedia.h" |
| 40 #import "core/rendering/RenderMediaControls.h" | 40 #import "core/rendering/RenderMediaControls.h" |
| 41 #import "core/rendering/RenderMeter.h" | 41 #import "core/rendering/RenderMeter.h" |
| 42 #import "core/rendering/RenderProgress.h" | 42 #import "core/rendering/RenderProgress.h" |
| 43 #import "core/rendering/RenderSlider.h" | 43 #import "core/rendering/RenderSlider.h" |
| 44 #import "core/rendering/RenderView.h" | 44 #import "core/rendering/RenderView.h" |
| 45 #import "core/rendering/style/ShadowList.h" | 45 #import "core/rendering/style/ShadowList.h" |
| 46 #import "platform/LayoutTestSupport.h" | 46 #import "platform/LayoutTestSupport.h" |
| 47 #import "platform/SharedBuffer.h" | 47 #import "platform/SharedBuffer.h" |
| 48 #import "platform/geometry/FloatRoundedRect.h" |
| 48 #import "platform/graphics/BitmapImage.h" | 49 #import "platform/graphics/BitmapImage.h" |
| 49 #import "platform/graphics/GraphicsContextStateSaver.h" | 50 #import "platform/graphics/GraphicsContextStateSaver.h" |
| 50 #import "platform/graphics/Image.h" | 51 #import "platform/graphics/Image.h" |
| 51 #import "platform/graphics/ImageBuffer.h" | 52 #import "platform/graphics/ImageBuffer.h" |
| 52 #import "platform/mac/ColorMac.h" | 53 #import "platform/mac/ColorMac.h" |
| 53 #import "platform/mac/LocalCurrentGraphicsContext.h" | 54 #import "platform/mac/LocalCurrentGraphicsContext.h" |
| 54 #import "platform/mac/ThemeMac.h" | 55 #import "platform/mac/ThemeMac.h" |
| 55 #import "platform/mac/WebCoreNSCellExtras.h" | 56 #import "platform/mac/WebCoreNSCellExtras.h" |
| 56 #import "platform/text/PlatformLocale.h" | 57 #import "platform/text/PlatformLocale.h" |
| 57 #import "platform/text/StringTruncator.h" | 58 #import "platform/text/StringTruncator.h" |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 | 1264 |
| 1264 Color tintColor; | 1265 Color tintColor; |
| 1265 if (!isEnabled(o)) | 1266 if (!isEnabled(o)) |
| 1266 tintColor = Color(255, 255, 255, 128); | 1267 tintColor = Color(255, 255, 255, 128); |
| 1267 | 1268 |
| 1268 bool isVerticalSlider = o->style()->appearance() == SliderVerticalPart; | 1269 bool isVerticalSlider = o->style()->appearance() == SliderVerticalPart; |
| 1269 | 1270 |
| 1270 int fillRadiusSize = (sliderTrackWidth - sliderTrackBorderWidth) / 2; | 1271 int fillRadiusSize = (sliderTrackWidth - sliderTrackBorderWidth) / 2; |
| 1271 IntSize fillRadius(fillRadiusSize, fillRadiusSize); | 1272 IntSize fillRadius(fillRadiusSize, fillRadiusSize); |
| 1272 IntRect fillBounds = enclosedIntRect(unzoomedRect); | 1273 IntRect fillBounds = enclosedIntRect(unzoomedRect); |
| 1273 RoundedRect fillRect(fillBounds, fillRadius, fillRadius, fillRadius, fillRad
ius); | 1274 FloatRoundedRect fillRect(fillBounds, fillRadius, fillRadius, fillRadius, fi
llRadius); |
| 1274 paintInfo.context->fillRoundedRect(fillRect, fillColor); | 1275 paintInfo.context->fillRoundedRect(fillRect, fillColor); |
| 1275 | 1276 |
| 1276 IntSize shadowOffset(isVerticalSlider ? 1 : 0, | 1277 IntSize shadowOffset(isVerticalSlider ? 1 : 0, |
| 1277 isVerticalSlider ? 0 : 1); | 1278 isVerticalSlider ? 0 : 1); |
| 1278 int shadowBlur = 3; | 1279 int shadowBlur = 3; |
| 1279 int shadowSpread = 0; | 1280 int shadowSpread = 0; |
| 1280 paintInfo.context->save(); | 1281 paintInfo.context->save(); |
| 1281 paintInfo.context->drawInnerShadow(fillRect, shadowColor, shadowOffset, shad
owBlur, shadowSpread); | 1282 paintInfo.context->drawInnerShadow(fillRect, shadowColor, shadowOffset, shad
owBlur, shadowSpread); |
| 1282 paintInfo.context->restore(); | 1283 paintInfo.context->restore(); |
| 1283 | 1284 |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1843 | 1844 |
| 1844 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 1845 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
| 1845 { | 1846 { |
| 1846 ControlPart part = style->appearance(); | 1847 ControlPart part = style->appearance(); |
| 1847 if (part == CheckboxPart || part == RadioPart) | 1848 if (part == CheckboxPart || part == RadioPart) |
| 1848 return style->effectiveZoom() != 1; | 1849 return style->effectiveZoom() != 1; |
| 1849 return false; | 1850 return false; |
| 1850 } | 1851 } |
| 1851 | 1852 |
| 1852 } // namespace blink | 1853 } // namespace blink |
| OLD | NEW |