| 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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 } | 786 } |
| 787 | 787 |
| 788 int LayoutThemeDefault::menuListInternalPadding(const LayoutStyle& style, int pa
ddingType) const | 788 int LayoutThemeDefault::menuListInternalPadding(const LayoutStyle& style, int pa
ddingType) const |
| 789 { | 789 { |
| 790 // This internal padding is in addition to the user-supplied padding. | 790 // This internal padding is in addition to the user-supplied padding. |
| 791 // Matches the FF behavior. | 791 // Matches the FF behavior. |
| 792 int padding = styledMenuListInternalPadding[paddingType]; | 792 int padding = styledMenuListInternalPadding[paddingType]; |
| 793 | 793 |
| 794 // Reserve the space for right arrow here. The rest of the padding is | 794 // Reserve the space for right arrow here. The rest of the padding is |
| 795 // set by adjustMenuListStyle, since PopMenuWin.cpp uses the padding from | 795 // set by adjustMenuListStyle, since PopMenuWin.cpp uses the padding from |
| 796 // RenderMenuList to lay out the individual items in the popup. | 796 // LayoutMenuList to lay out the individual items in the popup. |
| 797 // If the MenuList actually has appearance "NoAppearance", then that means | 797 // If the MenuList actually has appearance "NoAppearance", then that means |
| 798 // we don't draw a button, so don't reserve space for it. | 798 // we don't draw a button, so don't reserve space for it. |
| 799 const int barType = style.direction() == LTR ? RightPadding : LeftPadding; | 799 const int barType = style.direction() == LTR ? RightPadding : LeftPadding; |
| 800 if (paddingType == barType && style.appearance() != NoControlPart) | 800 if (paddingType == barType && style.appearance() != NoControlPart) |
| 801 padding += menuListArrowPadding(); | 801 padding += menuListArrowPadding(); |
| 802 | 802 |
| 803 return padding; | 803 return padding; |
| 804 } | 804 } |
| 805 | 805 |
| 806 bool LayoutThemeDefault::shouldShowPlaceholderWhenFocused() const | 806 bool LayoutThemeDefault::shouldShowPlaceholderWhenFocused() const |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 } | 862 } |
| 863 | 863 |
| 864 LayoutThemeDefault::DirectionFlippingScope::~DirectionFlippingScope() | 864 LayoutThemeDefault::DirectionFlippingScope::~DirectionFlippingScope() |
| 865 { | 865 { |
| 866 if (!m_needsFlipping) | 866 if (!m_needsFlipping) |
| 867 return; | 867 return; |
| 868 m_paintInfo.context->restore(); | 868 m_paintInfo.context->restore(); |
| 869 } | 869 } |
| 870 | 870 |
| 871 } // namespace blink | 871 } // namespace blink |
| OLD | NEW |