OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
5 * Copyright (C) 2008, 2009 Google Inc. | 5 * Copyright (C) 2008, 2009 Google Inc. |
6 * Copyright (C) 2009 Kenneth Rohde Christiansen | 6 * Copyright (C) 2009 Kenneth Rohde Christiansen |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 return; | 246 return; |
247 | 247 |
248 IntSize size = WebKit::Platform::current()->themeEngine()->getSize(WebKit::W
ebThemeEngine::PartRadio); | 248 IntSize size = WebKit::Platform::current()->themeEngine()->getSize(WebKit::W
ebThemeEngine::PartRadio); |
249 setSizeIfAuto(style, size); | 249 setSizeIfAuto(style, size); |
250 } | 250 } |
251 | 251 |
252 bool RenderThemeChromiumDefault::paintButton(RenderObject* o, const PaintInfo& i
, const IntRect& rect) | 252 bool RenderThemeChromiumDefault::paintButton(RenderObject* o, const PaintInfo& i
, const IntRect& rect) |
253 { | 253 { |
254 WebKit::WebThemeEngine::ExtraParams extraParams; | 254 WebKit::WebThemeEngine::ExtraParams extraParams; |
255 WebKit::WebCanvas* canvas = i.context->platformContext()->canvas(); | 255 WebKit::WebCanvas* canvas = i.context->platformContext()->canvas(); |
256 extraParams.button.isDefault = isDefault(o); | |
257 extraParams.button.hasBorder = true; | 256 extraParams.button.hasBorder = true; |
258 extraParams.button.backgroundColor = defaultButtonBackgroundColor; | 257 extraParams.button.backgroundColor = defaultButtonBackgroundColor; |
259 if (o->hasBackground()) | 258 if (o->hasBackground()) |
260 extraParams.button.backgroundColor = o->style()->visitedDependentColor(C
SSPropertyBackgroundColor).rgb(); | 259 extraParams.button.backgroundColor = o->style()->visitedDependentColor(C
SSPropertyBackgroundColor).rgb(); |
261 | 260 |
262 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn
gine::PartButton, getWebThemeState(this, o), WebKit::WebRect(rect), &extraParams
); | 261 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn
gine::PartButton, getWebThemeState(this, o), WebKit::WebRect(rect), &extraParams
); |
263 return false; | 262 return false; |
264 } | 263 } |
265 | 264 |
266 bool RenderThemeChromiumDefault::paintTextField(RenderObject* o, const PaintInfo
& i, const IntRect& rect) | 265 bool RenderThemeChromiumDefault::paintTextField(RenderObject* o, const PaintInfo
& i, const IntRect& rect) |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn
gine::PartProgressBar, getWebThemeState(this, o), WebKit::WebRect(rect), &extraP
arams); | 378 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn
gine::PartProgressBar, getWebThemeState(this, o), WebKit::WebRect(rect), &extraP
arams); |
380 return false; | 379 return false; |
381 } | 380 } |
382 | 381 |
383 bool RenderThemeChromiumDefault::shouldOpenPickerWithF4Key() const | 382 bool RenderThemeChromiumDefault::shouldOpenPickerWithF4Key() const |
384 { | 383 { |
385 return true; | 384 return true; |
386 } | 385 } |
387 | 386 |
388 } // namespace WebCore | 387 } // namespace WebCore |
OLD | NEW |