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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 } | 383 } |
384 | 384 |
385 // static | 385 // static |
386 void LayoutThemeDefault::setDefaultFontSize(int fontSize) | 386 void LayoutThemeDefault::setDefaultFontSize(int fontSize) |
387 { | 387 { |
388 LayoutThemeFontProvider::setDefaultFontSize(fontSize); | 388 LayoutThemeFontProvider::setDefaultFontSize(fontSize); |
389 } | 389 } |
390 | 390 |
391 int LayoutThemeDefault::menuListArrowPadding() const | 391 int LayoutThemeDefault::menuListArrowPadding() const |
392 { | 392 { |
393 return ScrollbarTheme::theme()->scrollbarThickness(); | 393 return ScrollbarTheme::theme().scrollbarThickness(); |
394 } | 394 } |
395 | 395 |
396 int LayoutThemeDefault::menuListInternalPadding(const ComputedStyle& style, int
paddingType) const | 396 int LayoutThemeDefault::menuListInternalPadding(const ComputedStyle& style, int
paddingType) const |
397 { | 397 { |
398 if (style.appearance() == NoControlPart) | 398 if (style.appearance() == NoControlPart) |
399 return 0; | 399 return 0; |
400 // This internal padding is in addition to the user-supplied padding. | 400 // This internal padding is in addition to the user-supplied padding. |
401 // Matches the FF behavior. | 401 // Matches the FF behavior. |
402 int padding = styledMenuListInternalPadding[paddingType]; | 402 int padding = styledMenuListInternalPadding[paddingType]; |
403 | 403 |
(...skipping 17 matching lines...) Expand all Loading... |
421 { | 421 { |
422 return progressAnimationInterval; | 422 return progressAnimationInterval; |
423 } | 423 } |
424 | 424 |
425 double LayoutThemeDefault::animationDurationForProgressBar() const | 425 double LayoutThemeDefault::animationDurationForProgressBar() const |
426 { | 426 { |
427 return progressAnimationInterval * progressAnimationFrames * 2; // "2" for b
ack and forth | 427 return progressAnimationInterval * progressAnimationFrames * 2; // "2" for b
ack and forth |
428 } | 428 } |
429 | 429 |
430 } // namespace blink | 430 } // namespace blink |
OLD | NEW |