| OLD | NEW |
| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 return inactiveListBoxSelectionBackgroundColor(); | 783 return inactiveListBoxSelectionBackgroundColor(); |
| 784 case CSSValueInternalInactiveListBoxSelectionText: | 784 case CSSValueInternalInactiveListBoxSelectionText: |
| 785 return inactiveListBoxSelectionForegroundColor(); | 785 return inactiveListBoxSelectionForegroundColor(); |
| 786 default: | 786 default: |
| 787 break; | 787 break; |
| 788 } | 788 } |
| 789 NOTREACHED(); | 789 NOTREACHED(); |
| 790 return Color(); | 790 return Color(); |
| 791 } | 791 } |
| 792 | 792 |
| 793 Color LayoutTheme::platformTextSearchHighlightColor(bool activeMatch) const { | 793 Color LayoutTheme::platformTextSearchHighlightColor( |
| 794 if (activeMatch) | 794 DocumentMarker::MatchStatus activeMatch) const { |
| 795 if (activeMatch == DocumentMarker::MatchStatus::Active) |
| 795 return Color(255, 150, 50); // Orange. | 796 return Color(255, 150, 50); // Orange. |
| 796 return Color(255, 255, 0); // Yellow. | 797 return Color(255, 255, 0); // Yellow. |
| 797 } | 798 } |
| 798 | 799 |
| 799 Color LayoutTheme::platformTextSearchColor(bool activeMatch) const { | 800 Color LayoutTheme::platformTextSearchColor( |
| 801 DocumentMarker::MatchStatus activeMatch) const { |
| 800 return Color::black; | 802 return Color::black; |
| 801 } | 803 } |
| 802 | 804 |
| 803 Color LayoutTheme::tapHighlightColor() { | 805 Color LayoutTheme::tapHighlightColor() { |
| 804 return theme().platformTapHighlightColor(); | 806 return theme().platformTapHighlightColor(); |
| 805 } | 807 } |
| 806 | 808 |
| 807 void LayoutTheme::setCustomFocusRingColor(const Color& c) { | 809 void LayoutTheme::setCustomFocusRingColor(const Color& c) { |
| 808 m_customFocusRingColor = c; | 810 m_customFocusRingColor = c; |
| 809 m_hasCustomFocusRingColor = true; | 811 m_hasCustomFocusRingColor = true; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 // padding - not honored by WinIE, needs to be removed. | 913 // padding - not honored by WinIE, needs to be removed. |
| 912 style.resetPadding(); | 914 style.resetPadding(); |
| 913 | 915 |
| 914 // border - honored by WinIE, but looks terrible (just paints in the control | 916 // border - honored by WinIE, but looks terrible (just paints in the control |
| 915 // box and turns off the Windows XP theme) | 917 // box and turns off the Windows XP theme) |
| 916 // for now, we will not honor it. | 918 // for now, we will not honor it. |
| 917 style.resetBorder(); | 919 style.resetBorder(); |
| 918 } | 920 } |
| 919 | 921 |
| 920 } // namespace blink | 922 } // namespace blink |
| OLD | NEW |