Chromium Code Reviews
DescriptionConstrain native theme menu list arrow to the paint rect
If menu lists were drawn very small, the arrow would spill out from the
paint rect. For example, look at the following:
<select style="height:4px; width: 4px"><option>foo</option><option>bar</option></select>
This will draw an arrow entirely outside the select element's bounds.
This patch constrains the menu list arrow so that it does not spill out.
This isn't a problem for other controls because they manually clip or
paint relative to the paint rect. This patch doesn't affect the common
case and should only change edge-case behavior of select elements
smaller than 6px.
TEST=fast/forms/basic-selects.html
BUG=498814
Committed: https://crrev.com/c2acd45a4c5c4b46a717a1872c895538bffd0ee9
Cr-Commit-Position: refs/heads/master@{#334666}
Patch Set 1 #Patch Set 2 : Typeo #
Total comments: 1
Patch Set 3 : Pdr learns a foreign language known as chromium c++ style #Messages
Total messages: 25 (11 generated)
|