[Title] Underline not matching Bacground Rectangle in Japanese IME
authorKarthik Gopalan <karthikg.g@samsung.com>
Fri, 7 Jun 2013 16:44:08 +0000 (22:14 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 14 Jun 2013 08:36:21 +0000 (08:36 +0000)
[Issue#] P130515-2070

[Problem] In Japanese IME, Underline is not matching the background rectangle

[Cause] Underline length is calculated wrongly

[Solution] Fixed the Calcualtion of Underline Width
Change-Id: If2d29dd811072ffd22038dc8bbd0254abffd5a2e

Source/WebCore/rendering/InlineTextBox.cpp

index 6edcd1b..19a3b1b 100644 (file)
@@ -1286,10 +1286,13 @@ void InlineTextBox::paintCompositionUnderline(GraphicsContext* ctx, const FloatP
     if (underline.thick && logicalHeight() - baseline >= 2)
         lineThickness = 2;
 
+#if !ENABLE(TIZEN_WEBKIT2_SUPPORT_JAPANESE_IME)
     // We need to have some space between underlines of subsequent clauses, because some input methods do not use different underline styles for those.
     // We make each line shorter, which has a harmless side effect of shortening the first and last clauses, too.
     start += 1;
     width -= 2;
+#endif
+
 
     ctx->setStrokeColor(underline.color, renderer()->style()->colorSpace());
     ctx->setStrokeThickness(lineThickness);