summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-05-17 08:58:16 -0700
committerAndroid Code Review <code-review@android.com>2010-05-17 08:58:16 -0700
commit09dca88f0da7c89ba4ae519c1c4f123cb0c279ff (patch)
treefec16ba181a33f3e58587e56ec9a95d3b09afd57 /WebCore
parentd84a638c00a2c66685f37e34ec513bb9c6acf488 (diff)
parent733e4cfb8b3cae83daff5cc7a426ee901227dbc6 (diff)
downloadexternal_webkit-09dca88f0da7c89ba4ae519c1c4f123cb0c279ff.zip
external_webkit-09dca88f0da7c89ba4ae519c1c4f123cb0c279ff.tar.gz
external_webkit-09dca88f0da7c89ba4ae519c1c4f123cb0c279ff.tar.bz2
Merge "Fix focus ring on links with non-latin text"
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/FontAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/FontAndroid.cpp b/WebCore/platform/graphics/android/FontAndroid.cpp
index a430b07..e9cf4c8 100644
--- a/WebCore/platform/graphics/android/FontAndroid.cpp
+++ b/WebCore/platform/graphics/android/FontAndroid.cpp
@@ -188,7 +188,7 @@ FloatRect Font::selectionRectForComplexText(const TextRun& run,
SkScalar spacing = paint.getFontMetrics(&metrics);
return FloatRect(point.x(),
- point.y() - floorf(SkScalarToFloat(-metrics.fAscent)),
+ point.y(),
roundf(SkScalarToFloat(width)),
roundf(SkScalarToFloat(spacing)));
}