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

Side by Side 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: Added testcase 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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 Color LayoutTheme::platformActiveTextSearchHighlightColor() const 818 Color LayoutTheme::platformActiveTextSearchHighlightColor() const
819 { 819 {
820 return Color(255, 150, 50); // Orange. 820 return Color(255, 150, 50); // Orange.
821 } 821 }
822 822
823 Color LayoutTheme::platformInactiveTextSearchHighlightColor() const 823 Color LayoutTheme::platformInactiveTextSearchHighlightColor() const
824 { 824 {
825 return Color(255, 255, 0); // Yellow. 825 return Color(255, 255, 0); // Yellow.
826 } 826 }
827 827
828 Color LayoutTheme::platformActiveTextSearchColor() const
829 {
830 return Color(0, 0, 0); // Black.
rwlbuis 2015/11/30 15:39:52 You should be able to use Color::black here, that
ramya.v 2015/12/01 03:52:41 Done.
831 }
832
833 Color LayoutTheme::platformInactiveTextSearchColor() const
834 {
835 return Color(0, 0, 0); // Black.
rwlbuis 2015/11/30 15:39:52 Ditto.
ramya.v 2015/12/01 03:52:41 Done.
836 }
837
828 Color LayoutTheme::tapHighlightColor() 838 Color LayoutTheme::tapHighlightColor()
829 { 839 {
830 return theme().platformTapHighlightColor(); 840 return theme().platformTapHighlightColor();
831 } 841 }
832 842
833 void LayoutTheme::setCustomFocusRingColor(const Color& c) 843 void LayoutTheme::setCustomFocusRingColor(const Color& c)
834 { 844 {
835 m_customFocusRingColor = c; 845 m_customFocusRingColor = c;
836 m_hasCustomFocusRingColor = true; 846 m_hasCustomFocusRingColor = true;
837 } 847 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 946
937 // padding - not honored by WinIE, needs to be removed. 947 // padding - not honored by WinIE, needs to be removed.
938 style.resetPadding(); 948 style.resetPadding();
939 949
940 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 950 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
941 // for now, we will not honor it. 951 // for now, we will not honor it.
942 style.resetBorder(); 952 style.resetBorder();
943 } 953 }
944 954
945 } // namespace blink 955 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698