diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 18:22:40 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 18:22:40 +0000 |
commit | 33ad0cecd72a47bdc3f44b85e07189ca7d8c212b (patch) | |
tree | 5f0c21289e785a0ac58460bc186504cb7c44cc50 /chrome/browser/resources_util.cc | |
parent | 70f4ac25f142bccaf4e3e62e381d2a0c6d1da41e (diff) | |
download | chromium_src-33ad0cecd72a47bdc3f44b85e07189ca7d8c212b.zip chromium_src-33ad0cecd72a47bdc3f44b85e07189ca7d8c212b.tar.gz chromium_src-33ad0cecd72a47bdc3f44b85e07189ca7d8c212b.tar.bz2 |
Several cleanup items, and one visible change:
* Eliminte the distinction between "item to item padding" and "item to edge
padding" because the two values are always equal.
* Don't bother supporting "height 0 = use preferred height" in
location_bar_layout.*, since only one caller uses it at this point and it's
easier to understand the code by just making it explicit.
* Switch to using a views::Painter for the popup mode background as well,
instead of explicitly drawing the images. This will make it easy to switch
both modes to ninebox painting in the future.
* Try to reorder code in order to declare variables as close to their use as
possible, and in the order that they're accessed.
* Visible change: Instead of assuming the edit always has 1 px. of "internal
space", calculate the correct conditions for which that's true. This results
in the OmniboxViewViews text moving right by 1 px. in the LTR case.
BUG=231005,239902
TEST=With "views textfield" on, address bar text moves 1 px. right
R=sky@chromium.org
Review URL: https://codereview.chromium.org/16025004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202916 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources_util.cc')
0 files changed, 0 insertions, 0 deletions