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

Issue 1187503002: Constrain native theme menu list arrow to the paint rect (Closed)

Created:
5 years, 6 months ago by pdr.
Modified:
5 years, 6 months ago
Reviewers:
chrishtr, sadrul, enne (OOO)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Constrain 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M ui/native_theme/native_theme_base.cc View 1 2 1 chunk +15 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
enne (OOO)
+sadrul
5 years, 6 months ago (2015-06-12 17:58:36 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187503002/20001
5 years, 6 months ago (2015-06-12 22:09:09 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-12 23:08:53 UTC) #10
pdr.
@sadrul, ping.
5 years, 6 months ago (2015-06-15 06:55:32 UTC) #11
chrishtr
lgtm
5 years, 6 months ago (2015-06-15 21:01:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187503002/20001
5 years, 6 months ago (2015-06-15 21:02:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/71000)
5 years, 6 months ago (2015-06-15 21:12:46 UTC) #16
pdr.
On 2015/06/15 at 21:01:05, chrishtr wrote: > lgtm Thanks but we still need sadrul's OWNERS ...
5 years, 6 months ago (2015-06-15 21:14:19 UTC) #17
sadrul
lgtm
5 years, 6 months ago (2015-06-16 14:25:02 UTC) #18
sadrul
one nit: https://codereview.chromium.org/1187503002/diff/20001/ui/native_theme/native_theme_base.cc File ui/native_theme/native_theme_base.cc (right): https://codereview.chromium.org/1187503002/diff/20001/ui/native_theme/native_theme_base.cc#newcode776 ui/native_theme/native_theme_base.cc:776: static const int arrow_height = 6; This ...
5 years, 6 months ago (2015-06-16 14:25:52 UTC) #19
pdr.
On 2015/06/16 at 14:25:52, sadrul wrote: > one nit: > > https://codereview.chromium.org/1187503002/diff/20001/ui/native_theme/native_theme_base.cc > File ui/native_theme/native_theme_base.cc ...
5 years, 6 months ago (2015-06-16 18:01:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187503002/40001
5 years, 6 months ago (2015-06-16 18:02:07 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-16 19:53:22 UTC) #24
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 19:54:16 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c2acd45a4c5c4b46a717a1872c895538bffd0ee9
Cr-Commit-Position: refs/heads/master@{#334666}

Powered by Google App Engine
This is Rietveld 408576698