summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorAnders Edenbrandt <anders.edenbrandt@sonyericsson.com>2010-02-10 10:41:22 +0100
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-04-21 08:55:37 +0200
commit733e4cfb8b3cae83daff5cc7a426ee901227dbc6 (patch)
tree52c33b733b620fa8e2de9448791b10c2ee9b58bf /WebCore
parent18342a41ab72e2c21931afaaab6f1b9bdbedb9fa (diff)
downloadexternal_webkit-733e4cfb8b3cae83daff5cc7a426ee901227dbc6.zip
external_webkit-733e4cfb8b3cae83daff5cc7a426ee901227dbc6.tar.gz
external_webkit-733e4cfb8b3cae83daff5cc7a426ee901227dbc6.tar.bz2
Fix focus ring on links with non-latin text
When a clickable link in a HTML document is focused, a rectangle with rounded corners is drawn around that link. If the link contains Arabic characters (or characters from other non-latin alphabets) the focus ring will be drawn too high up on the page. Change-Id: Ia589236c4e315af76c6e8f746cc99af63e7e53d7
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)));
}