OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 // control. To clarify, we first use the CSS-specified font to figure out a | 1121 // control. To clarify, we first use the CSS-specified font to figure out a |
1122 // reasonable control size, but once that control size is determined, we | 1122 // reasonable control size, but once that control size is determined, we |
1123 // throw that font away and use the appropriate system font for the control | 1123 // throw that font away and use the appropriate system font for the control |
1124 // size instead. | 1124 // size instead. |
1125 setFontFromControlSize(style, controlSize); | 1125 setFontFromControlSize(style, controlSize); |
1126 } | 1126 } |
1127 | 1127 |
1128 const int autofillPopupHorizontalPadding = 4; | 1128 const int autofillPopupHorizontalPadding = 4; |
1129 | 1129 |
1130 // These functions are called with MenuListPart or MenulistButtonPart appearance | 1130 // These functions are called with MenuListPart or MenulistButtonPart appearance |
1131 // by RenderMenuList, or with TextFieldPart appearance by | 1131 // by LayoutMenuList, or with TextFieldPart appearance by |
1132 // AutofillPopupMenuClient. We assume only AutofillPopupMenuClient gives | 1132 // AutofillPopupMenuClient. We assume only AutofillPopupMenuClient gives |
1133 // TexfieldPart appearance here. We want to change only Autofill padding. In | 1133 // TexfieldPart appearance here. We want to change only Autofill padding. In |
1134 // the future, we have to separate Autofill popup window logic from WebKit to | 1134 // the future, we have to separate Autofill popup window logic from WebKit to |
1135 // Chromium. | 1135 // Chromium. |
1136 int LayoutThemeMac::popupInternalPaddingLeft(const LayoutStyle& style) const | 1136 int LayoutThemeMac::popupInternalPaddingLeft(const LayoutStyle& style) const |
1137 { | 1137 { |
1138 if (style.appearance() == TextFieldPart) | 1138 if (style.appearance() == TextFieldPart) |
1139 return autofillPopupHorizontalPadding; | 1139 return autofillPopupHorizontalPadding; |
1140 | 1140 |
1141 if (style.appearance() == MenulistPart) | 1141 if (style.appearance() == MenulistPart) |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1844 | 1844 |
1845 bool LayoutThemeMac::shouldUseFallbackTheme(const LayoutStyle& style) const | 1845 bool LayoutThemeMac::shouldUseFallbackTheme(const LayoutStyle& style) const |
1846 { | 1846 { |
1847 ControlPart part = style.appearance(); | 1847 ControlPart part = style.appearance(); |
1848 if (part == CheckboxPart || part == RadioPart) | 1848 if (part == CheckboxPart || part == RadioPart) |
1849 return style.effectiveZoom() != 1; | 1849 return style.effectiveZoom() != 1; |
1850 return false; | 1850 return false; |
1851 } | 1851 } |
1852 | 1852 |
1853 } // namespace blink | 1853 } // namespace blink |
OLD | NEW |