summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 23:45:38 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 23:45:38 +0000
commite688ee18a968becf86de7901d7b2a0e0bd814d93 (patch)
tree1421fec985f61eee49d329e2337d03ed795efcad
parentbdf42e71f50582fbf764483d8241a640b5d6692c (diff)
downloadchromium_src-e688ee18a968becf86de7901d7b2a0e0bd814d93.zip
chromium_src-e688ee18a968becf86de7901d7b2a0e0bd814d93.tar.gz
chromium_src-e688ee18a968becf86de7901d7b2a0e0bd814d93.tar.bz2
Linux: round font ascents
This is obviously black magic but appears to be slightly more correct then the previous code for layout tests. Review URL: http://codereview.chromium.org/13361 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6756 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp b/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp
index be2aa2a..150e7c5 100644
--- a/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp
+++ b/webkit/port/platform/graphics/chromium/SimpleFontDataLinux.cpp
@@ -35,7 +35,7 @@ void SimpleFontData::platformInit()
m_ascent = metrics.fVDMXAscent;
m_descent = metrics.fVDMXDescent;
} else {
- m_ascent = SkScalarCeil(-metrics.fAscent);
+ m_ascent = SkScalarRound(-metrics.fAscent);
m_descent = SkScalarRound(metrics.fHeight) - m_ascent;
}