diff options
author | Victoria Lease <violets@google.com> | 2012-02-23 12:58:43 -0800 |
---|---|---|
committer | Victoria Lease <violets@google.com> | 2012-02-23 13:15:26 -0800 |
commit | e52b702893ce72ec42d7bf62c4975b4ef61067d2 (patch) | |
tree | 9a4769ab94f1c45bb6a4f8c748db70cc26d2632d /Source/WebCore/rendering | |
parent | a5460bb8f4d5cad3f45fad39d1745bf31c2b2dac (diff) | |
download | external_webkit-e52b702893ce72ec42d7bf62c4975b4ef61067d2.zip external_webkit-e52b702893ce72ec42d7bf62c4975b4ef61067d2.tar.gz external_webkit-e52b702893ce72ec42d7bf62c4975b4ef61067d2.tar.bz2 |
draw inactive find-on-page matches as outlines
Change-Id: Iacbeba1fb4e3c63f8f40c61c8b641c0b6c704cad
Diffstat (limited to 'Source/WebCore/rendering')
-rw-r--r-- | Source/WebCore/rendering/InlineTextBox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/rendering/InlineTextBox.cpp b/Source/WebCore/rendering/InlineTextBox.cpp index e8a9c7f..d5eeeae 100644 --- a/Source/WebCore/rendering/InlineTextBox.cpp +++ b/Source/WebCore/rendering/InlineTextBox.cpp @@ -1070,8 +1070,12 @@ void InlineTextBox::paintTextMatchMarker(GraphicsContext* pt, const FloatPoint& renderer()->theme()->platformInactiveTextSearchHighlightColor(); pt->save(); updateGraphicsContext(pt, color, color, 0, style->colorSpace()); // Don't draw text at all! +#if PLATFORM(ANDROID) + pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x(), boxOrigin.y() - deltaY), selHeight, color, style->colorSpace(), sPos, ePos, marker.activeMatch); +#else pt->clip(FloatRect(boxOrigin.x(), boxOrigin.y() - deltaY, m_logicalWidth, selHeight)); pt->drawHighlightForText(font, run, FloatPoint(boxOrigin.x(), boxOrigin.y() - deltaY), selHeight, color, style->colorSpace(), sPos, ePos); +#endif pt->restore(); } } |