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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 style.setMinWidth(Length(size.width() * zoomLevel, Fixed)); | 224 style.setMinWidth(Length(size.width() * zoomLevel, Fixed)); |
225 } | 225 } |
226 | 226 |
227 bool LayoutThemeDefault::shouldOpenPickerWithF4Key() const { | 227 bool LayoutThemeDefault::shouldOpenPickerWithF4Key() const { |
228 return true; | 228 return true; |
229 } | 229 } |
230 | 230 |
231 bool LayoutThemeDefault::shouldUseFallbackTheme( | 231 bool LayoutThemeDefault::shouldUseFallbackTheme( |
232 const ComputedStyle& style) const { | 232 const ComputedStyle& style) const { |
233 if (useMockTheme()) { | 233 if (useMockTheme()) { |
234 // The mock theme can't handle zoomed controls, so we fall back to the "fall
back" theme. | 234 // The mock theme can't handle zoomed controls, so we fall back to the |
| 235 // "fallback" theme. |
235 ControlPart part = style.appearance(); | 236 ControlPart part = style.appearance(); |
236 if (part == CheckboxPart || part == RadioPart) | 237 if (part == CheckboxPart || part == RadioPart) |
237 return style.effectiveZoom() != 1; | 238 return style.effectiveZoom() != 1; |
238 } | 239 } |
239 return LayoutTheme::shouldUseFallbackTheme(style); | 240 return LayoutTheme::shouldUseFallbackTheme(style); |
240 } | 241 } |
241 | 242 |
242 bool LayoutThemeDefault::supportsHover(const ComputedStyle& style) const { | 243 bool LayoutThemeDefault::supportsHover(const ComputedStyle& style) const { |
243 return true; | 244 return true; |
244 } | 245 } |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 double LayoutThemeDefault::animationRepeatIntervalForProgressBar() const { | 360 double LayoutThemeDefault::animationRepeatIntervalForProgressBar() const { |
360 return progressAnimationInterval; | 361 return progressAnimationInterval; |
361 } | 362 } |
362 | 363 |
363 double LayoutThemeDefault::animationDurationForProgressBar() const { | 364 double LayoutThemeDefault::animationDurationForProgressBar() const { |
364 return progressAnimationInterval * progressAnimationFrames * | 365 return progressAnimationInterval * progressAnimationFrames * |
365 2; // "2" for back and forth | 366 2; // "2" for back and forth |
366 } | 367 } |
367 | 368 |
368 } // namespace blink | 369 } // namespace blink |
OLD | NEW |