Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTheme.cpp

Issue 1468913002: Find In Page hides the text when text color matches text search hightlight color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutTheme.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
index 85b2c3c282090fe7389b2622cbbd8cc1280391f8..08c3e9862fd287a88574d7004428140f9d91b55d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
@@ -815,14 +815,16 @@ Color LayoutTheme::systemColor(CSSValueID cssValueId) const
return Color();
}
-Color LayoutTheme::platformActiveTextSearchHighlightColor() const
+Color LayoutTheme::platformTextSearchHighlightColor(bool activeMatch) const
{
- return Color(255, 150, 50); // Orange.
+ if (activeMatch)
+ return Color(255, 150, 50); // Orange.
+ return Color(255, 255, 0); // Yellow.
}
-Color LayoutTheme::platformInactiveTextSearchHighlightColor() const
+Color LayoutTheme::platformTextSearchColor(bool activeMatch) const
{
- return Color(255, 255, 0); // Yellow.
+ return Color::black;
}
Color LayoutTheme::tapHighlightColor()
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.h ('k') | third_party/WebKit/Source/core/layout/line/InlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698