Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: Source/core/layout/LayoutThemeMac.mm

Issue 966883002: renderer/RenderMenuList.* -> layout/LayoutMenuList.* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove OWNERS, allowing Source/core/rendering to be deleted. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/layout/LayoutThemeDefault.cpp ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutThemeDefault.cpp ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698