From c0132b9c9e79ec21080d22f5573fd3b8ea4dc143 Mon Sep 17 00:00:00 2001 From: Hyeonji Kim Date: Fri, 27 Sep 2013 16:53:04 +0900 Subject: [PATCH] Modify underline background color of Japanese IME Preedit [Title] Modify underline background color of Japanese IME Preedit [Issue#] P130925-01944 [Problem] font is not displayed when both font color and underline background color are white [Cause] both font color and underline background color are white [Solution] change underline background color when both font color and underline background color are white Change-Id: Ibf7908cfd0338f89ddcb79e7a6a084e2d8a308b0 --- Source/WebCore/rendering/InlineTextBox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/WebCore/rendering/InlineTextBox.cpp b/Source/WebCore/rendering/InlineTextBox.cpp index f5f821b..c601044 100644 --- a/Source/WebCore/rendering/InlineTextBox.cpp +++ b/Source/WebCore/rendering/InlineTextBox.cpp @@ -934,6 +934,11 @@ void InlineTextBox::paintCompositionUnderlineBackground(GraphicsContext* context if (!c.isValid()) return; + // For text visibility + Color textFillColor = style->visitedDependentColor(CSSPropertyWebkitTextFillColor); + if (c == Color::white && (textFillColor.isValid() && textFillColor == Color::white)) + c = Color::lightGray; + updateGraphicsContext(context, c, c, 0, style->colorSpace()); // Don't draw text at all! int deltaY = renderer()->style()->isFlippedLinesWritingMode() ? selectionBottom() - logicalBottom() : logicalTop() - selectionTop(); -- 2.7.4