| 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 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 trackInfo.bounds = IntRect(IntPoint(), inflatedRect.size()); | 1077 trackInfo.bounds = IntRect(IntPoint(), inflatedRect.size()); |
| 1078 trackInfo.min = 0; | 1078 trackInfo.min = 0; |
| 1079 trackInfo.max = numeric_limits<SInt32>::max(); | 1079 trackInfo.max = numeric_limits<SInt32>::max(); |
| 1080 trackInfo.value = lround(renderProgress->position() * nextafter(trackInfo.ma
x, 0)); | 1080 trackInfo.value = lround(renderProgress->position() * nextafter(trackInfo.ma
x, 0)); |
| 1081 trackInfo.trackInfo.progress.phase = lround(renderProgress->animationProgres
s() * nextafter(progressAnimationNumFrames, 0)); | 1081 trackInfo.trackInfo.progress.phase = lround(renderProgress->animationProgres
s() * nextafter(progressAnimationNumFrames, 0)); |
| 1082 trackInfo.attributes = kThemeTrackHorizontal; | 1082 trackInfo.attributes = kThemeTrackHorizontal; |
| 1083 trackInfo.enableState = isActive(renderObject) ? kThemeTrackActive : kThemeT
rackInactive; | 1083 trackInfo.enableState = isActive(renderObject) ? kThemeTrackActive : kThemeT
rackInactive; |
| 1084 trackInfo.reserved = 0; | 1084 trackInfo.reserved = 0; |
| 1085 trackInfo.filler1 = 0; | 1085 trackInfo.filler1 = 0; |
| 1086 | 1086 |
| 1087 OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(inflatedRect.size(), 1
); | 1087 OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(inflatedRect.size()); |
| 1088 if (!imageBuffer) | 1088 if (!imageBuffer) |
| 1089 return true; | 1089 return true; |
| 1090 | 1090 |
| 1091 ContextContainer cgContextContainer(imageBuffer->context()); | 1091 ContextContainer cgContextContainer(imageBuffer->context()); |
| 1092 CGContextRef cgContext = cgContextContainer.context(); | 1092 CGContextRef cgContext = cgContextContainer.context(); |
| 1093 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); | 1093 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); |
| 1094 | 1094 |
| 1095 GraphicsContextStateSaver stateSaver(*paintInfo.context); | 1095 GraphicsContextStateSaver stateSaver(*paintInfo.context); |
| 1096 | 1096 |
| 1097 if (!renderProgress->style()->isLeftToRightDirection()) { | 1097 if (!renderProgress->style()->isLeftToRightDirection()) { |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 | 2004 |
| 2005 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 2005 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
| 2006 { | 2006 { |
| 2007 ControlPart part = style->appearance(); | 2007 ControlPart part = style->appearance(); |
| 2008 if (part == CheckboxPart || part == RadioPart) | 2008 if (part == CheckboxPart || part == RadioPart) |
| 2009 return style->effectiveZoom() != 1; | 2009 return style->effectiveZoom() != 1; |
| 2010 return false; | 2010 return false; |
| 2011 } | 2011 } |
| 2012 | 2012 |
| 2013 } // namespace WebCore | 2013 } // namespace WebCore |
| OLD | NEW |