Chromium Code Reviews
DescriptionThe close button for bubbles should be an ImageButton, not a LabelButton.
This button never has a label; it's purely an image. Making it a LabelButton
means its minimum height is the height of the label font, even if no label is
visible. Accordingly, the button was not actually sized to its image (14x14),
but to 14x16 (at least on my system -- maybe font metrics vary).
I can't see any other effect of this. This button is not focusable, so there's
no taborder focus rect that would change. I would be surprised if anyone
notices the difference. I only noticed while trying to figure out how the
positioning algorithms here work in preparation for simplifying them for
Harmony.
This change also eliminates usage of a non-const ref, and simplifies some code
by refactoring into temps.
BUG=686962
Review-Url: https://codereview.chromium.org/2667903002
Cr-Commit-Position: refs/heads/master@{#447337}
Committed: https://chromium.googlesource.com/chromium/src/+/5c8c2e7b510f494dbde1a63f4fda119701a727db
Patch Set 1 #
Total comments: 2
Messages
Total messages: 15 (10 generated)
|
|||||||||||||||||||