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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.h

Issue 2560733002: SELECT element: Fix a bug that intrinsic width is too narrow in less-than-100% zoom level. (Closed)
Patch Set: PartScrollbarVerticalTrack -> PartScrollbarDownArrow to fix Android crash Created 4 years 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
OLDNEW
1 /* 1 /*
2 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
6 * Copyright (C) 2007 Holger Hans Peter Freyther 6 * Copyright (C) 2007 Holger Hans Peter Freyther
7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
8 * Copyright (C) 2008, 2009 Google, Inc. 8 * Copyright (C) 2008, 2009 Google, Inc.
9 * All rights reserved. 9 * All rights reserved.
10 * Copyright (C) 2009 Kenneth Rohde Christiansen 10 * Copyright (C) 2009 Kenneth Rohde Christiansen
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // codepath. We never go down both. And in both cases, they layout the 104 // codepath. We never go down both. And in both cases, they layout the
105 // entire menulist. 105 // entire menulist.
106 void adjustMenuListStyle(ComputedStyle&, Element*) const override; 106 void adjustMenuListStyle(ComputedStyle&, Element*) const override;
107 void adjustMenuListButtonStyle(ComputedStyle&, Element*) const override; 107 void adjustMenuListButtonStyle(ComputedStyle&, Element*) const override;
108 108
109 double animationRepeatIntervalForProgressBar() const override; 109 double animationRepeatIntervalForProgressBar() const override;
110 double animationDurationForProgressBar() const override; 110 double animationDurationForProgressBar() const override;
111 111
112 // These methods define the padding for the MenuList's inner block. 112 // These methods define the padding for the MenuList's inner block.
113 int popupInternalPaddingStart(const ComputedStyle&) const override; 113 int popupInternalPaddingStart(const ComputedStyle&) const override;
114 int popupInternalPaddingEnd(const ComputedStyle&) const override; 114 int popupInternalPaddingEnd(const HostWindow*,
115 const ComputedStyle&) const override;
115 int popupInternalPaddingTop(const ComputedStyle&) const override; 116 int popupInternalPaddingTop(const ComputedStyle&) const override;
116 int popupInternalPaddingBottom(const ComputedStyle&) const override; 117 int popupInternalPaddingBottom(const ComputedStyle&) const override;
118 static int scrollbarThicknessInDIP();
119 static float clampedMenuListArrowPaddingSize(const HostWindow*,
120 const ComputedStyle&);
117 121
118 // Provide a way to pass the default font size from the Settings object 122 // Provide a way to pass the default font size from the Settings object
119 // to the layout theme. FIXME: http://b/1129186 A cleaner way would be 123 // to the layout theme. FIXME: http://b/1129186 A cleaner way would be
120 // to remove the default font size from this object and have callers 124 // to remove the default font size from this object and have callers
121 // that need the value to get it directly from the appropriate Settings 125 // that need the value to get it directly from the appropriate Settings
122 // object. 126 // object.
123 static void setDefaultFontSize(int); 127 static void setDefaultFontSize(int);
124 128
125 static void setSelectionColors(unsigned activeBackgroundColor, 129 static void setSelectionColors(unsigned activeBackgroundColor,
126 unsigned activeForegroundColor, 130 unsigned activeForegroundColor,
(...skipping 22 matching lines...) Expand all
149 static unsigned m_activeSelectionForegroundColor; 153 static unsigned m_activeSelectionForegroundColor;
150 static unsigned m_inactiveSelectionBackgroundColor; 154 static unsigned m_inactiveSelectionBackgroundColor;
151 static unsigned m_inactiveSelectionForegroundColor; 155 static unsigned m_inactiveSelectionForegroundColor;
152 156
153 ThemePainterDefault m_painter; 157 ThemePainterDefault m_painter;
154 }; 158 };
155 159
156 } // namespace blink 160 } // namespace blink
157 161
158 #endif // LayoutThemeDefault_h 162 #endif // LayoutThemeDefault_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.h ('k') | third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698