diff options
author | Russell Brenner <russellbrenner@google.com> | 2011-07-06 10:09:36 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-06 10:09:36 -0700 |
commit | acee8c611318d97546311ba5b8b6465cbbbcb3b4 (patch) | |
tree | 2f6799722a9394827ced56d3cd56c1e1ff4c445e /Source/WebCore | |
parent | 63cbafa7c232a74163d9ed8030578be970cd25a9 (diff) | |
parent | 69efdf7b2cd8f4956d7cc03dc3d1bbf9b8e35483 (diff) | |
download | external_webkit-acee8c611318d97546311ba5b8b6465cbbbcb3b4.zip external_webkit-acee8c611318d97546311ba5b8b6465cbbbcb3b4.tar.gz external_webkit-acee8c611318d97546311ba5b8b6465cbbbcb3b4.tar.bz2 |
Merge "Remove old scalar conversions"
Diffstat (limited to 'Source/WebCore')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp index 429a125..e015f5a 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp @@ -624,10 +624,10 @@ static void setrectForUnderline(SkRect* r, GraphicsContext* context, const Float if (lineThickness < 1) // Do we really need/want this? lineThickness = 1; #endif - r->fLeft = SkIntToScalar(point.x()); - r->fTop = SkIntToScalar(point.y() + yOffset); - r->fRight = r->fLeft + SkIntToScalar(width); - r->fBottom = r->fTop + SkFloatToScalar(lineThickness); + r->fLeft = point.x(); + r->fTop = point.y() + yOffset; + r->fRight = r->fLeft + width; + r->fBottom = r->fTop + lineThickness; } void GraphicsContext::drawLineForText(const FloatPoint& pt, float width, bool) |