| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 WebCanvas* canvas = i.context->canvas(); | 483 WebCanvas* canvas = i.context->canvas(); |
| 484 Platform::current()->themeEngine()->paint(canvas, WebThemeEngine::PartProgre
ssBar, getWebThemeState(this, o), WebRect(rect), &extraParams); | 484 Platform::current()->themeEngine()->paint(canvas, WebThemeEngine::PartProgre
ssBar, getWebThemeState(this, o), WebRect(rect), &extraParams); |
| 485 return false; | 485 return false; |
| 486 } | 486 } |
| 487 | 487 |
| 488 bool LayoutThemeChromiumDefault::shouldOpenPickerWithF4Key() const | 488 bool LayoutThemeChromiumDefault::shouldOpenPickerWithF4Key() const |
| 489 { | 489 { |
| 490 return true; | 490 return true; |
| 491 } | 491 } |
| 492 | 492 |
| 493 bool LayoutThemeChromiumDefault::shouldUseFallbackTheme(RenderStyle* style) cons
t | 493 bool LayoutThemeChromiumDefault::shouldUseFallbackTheme(const RenderStyle* style
) const |
| 494 { | 494 { |
| 495 if (useMockTheme()) { | 495 if (useMockTheme()) { |
| 496 // The mock theme can't handle zoomed controls, so we fall back to the "
fallback" theme. | 496 // The mock theme can't handle zoomed controls, so we fall back to the "
fallback" theme. |
| 497 ControlPart part = style->appearance(); | 497 ControlPart part = style->appearance(); |
| 498 if (part == CheckboxPart || part == RadioPart) | 498 if (part == CheckboxPart || part == RadioPart) |
| 499 return style->effectiveZoom() != 1; | 499 return style->effectiveZoom() != 1; |
| 500 } | 500 } |
| 501 return LayoutTheme::shouldUseFallbackTheme(style); | 501 return LayoutTheme::shouldUseFallbackTheme(style); |
| 502 } | 502 } |
| 503 | 503 |
| 504 } // namespace blink | 504 } // namespace blink |
| OLD | NEW |