summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 00:24:18 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 00:24:18 +0000
commit7007668faea3bf52350d21d86a030cd6209ac5a9 (patch)
treeb34d09b6bb97a97a18b61d5849cf6ff91c3efa04 /chrome
parentc90c0e3e83d8167cd067a2414a1677f4d6e1c7ff (diff)
downloadchromium_src-7007668faea3bf52350d21d86a030cd6209ac5a9.zip
chromium_src-7007668faea3bf52350d21d86a030cd6209ac5a9.tar.gz
chromium_src-7007668faea3bf52350d21d86a030cd6209ac5a9.tar.bz2
Workaround Skia and Pango measuring font heights differently by asking Pango
for the height that we'll report in the gfx::Font. This seems wrong, but at least things will look reasonable until we find a better solution. This changes the existing height computation code to use ceiling. Even though this is no longer used, it is good to have the correct code for the height computation here so that if we find a better solution, it will be run properly. This also gives more room for the clock in the status area view because the height is now more and we want it to be aligned properly. BUG=none TEST=none Review URL: http://codereview.chromium.org/183044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/frame/status_area_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/status_area_view.cc b/chrome/browser/views/frame/status_area_view.cc
index 873ba6d..ca971be 100644
--- a/chrome/browser/views/frame/status_area_view.cc
+++ b/chrome/browser/views/frame/status_area_view.cc
@@ -68,7 +68,7 @@ ClockView::~ClockView() {
}
gfx::Size ClockView::GetPreferredSize() {
- return gfx::Size(40, 10);
+ return gfx::Size(40, 17);
}
void ClockView::Paint(gfx::Canvas* canvas) {