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

Side by Side Diff: Source/WebKit/chromium/src/WebColorName.cpp

Issue 14096013: Implement select element list box with shadow DOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shadowselect
Patch Set: Created 7 years, 8 months 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 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 41
42 namespace WebKit { 42 namespace WebKit {
43 43
44 static int toCSSValueKeyword(WebColorName name) 44 static int toCSSValueKeyword(WebColorName name)
45 { 45 {
46 switch (name) { 46 switch (name) {
47 case WebColorActiveBorder: 47 case WebColorActiveBorder:
48 return CSSValueActiveborder; 48 return CSSValueActiveborder;
49 case WebColorActiveCaption: 49 case WebColorActiveCaption:
50 return CSSValueActivecaption; 50 return CSSValueActivecaption;
51 case WebColorActiveListBoxSelection:
52 return CSSValueActivelistboxselection;
53 case WebColorActiveListBoxSelectionText:
54 return CSSValueActivelistboxselectiontext;
51 case WebColorAppworkspace: 55 case WebColorAppworkspace:
52 return CSSValueAppworkspace; 56 return CSSValueAppworkspace;
53 case WebColorBackground: 57 case WebColorBackground:
54 return CSSValueBackground; 58 return CSSValueBackground;
55 case WebColorButtonFace: 59 case WebColorButtonFace:
56 return CSSValueButtonface; 60 return CSSValueButtonface;
57 case WebColorButtonHighlight: 61 case WebColorButtonHighlight:
58 return CSSValueButtonhighlight; 62 return CSSValueButtonhighlight;
59 case WebColorButtonShadow: 63 case WebColorButtonShadow:
60 return CSSValueButtonshadow; 64 return CSSValueButtonshadow;
61 case WebColorButtonText: 65 case WebColorButtonText:
62 return CSSValueButtontext; 66 return CSSValueButtontext;
63 case WebColorCaptionText: 67 case WebColorCaptionText:
64 return CSSValueCaptiontext; 68 return CSSValueCaptiontext;
65 case WebColorGrayText: 69 case WebColorGrayText:
66 return CSSValueGraytext; 70 return CSSValueGraytext;
67 case WebColorHighlight: 71 case WebColorHighlight:
68 return CSSValueHighlight; 72 return CSSValueHighlight;
69 case WebColorHighlightText: 73 case WebColorHighlightText:
70 return CSSValueHighlighttext; 74 return CSSValueHighlighttext;
71 case WebColorInactiveBorder: 75 case WebColorInactiveBorder:
72 return CSSValueInactiveborder; 76 return CSSValueInactiveborder;
73 case WebColorInactiveCaption: 77 case WebColorInactiveCaption:
74 return CSSValueInactivecaption; 78 return CSSValueInactivecaption;
75 case WebColorInactiveCaptionText: 79 case WebColorInactiveCaptionText:
76 return CSSValueInactivecaptiontext; 80 return CSSValueInactivecaptiontext;
81 case WebColorInactiveListBoxSelection:
82 return CSSValueInactivelistboxselection;
83 case WebColorInactiveListBoxSelectionText:
84 return CSSValueInactivelistboxselectiontext;
77 case WebColorInfoBackground: 85 case WebColorInfoBackground:
78 return CSSValueInfobackground; 86 return CSSValueInfobackground;
79 case WebColorInfoText: 87 case WebColorInfoText:
80 return CSSValueInfotext; 88 return CSSValueInfotext;
81 case WebColorMenu: 89 case WebColorMenu:
82 return CSSValueMenu; 90 return CSSValueMenu;
83 case WebColorMenuText: 91 case WebColorMenuText:
84 return CSSValueMenutext; 92 return CSSValueMenutext;
85 case WebColorScrollbar: 93 case WebColorScrollbar:
86 return CSSValueScrollbar; 94 return CSSValueScrollbar;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 if (internalColorName == CSSValueWebkitFocusRingColor) { 128 if (internalColorName == CSSValueWebkitFocusRingColor) {
121 RenderTheme::setCustomFocusRingColor(color); 129 RenderTheme::setCustomFocusRingColor(color);
122 continue; 130 continue;
123 } 131 }
124 } 132 }
125 133
126 // TODO(jeremy): Tell RenderTheme to update colors. 134 // TODO(jeremy): Tell RenderTheme to update colors.
127 } 135 }
128 136
129 } // WebKit 137 } // WebKit
OLDNEW
« Source/WebCore/html/HTMLOptionElement.cpp ('K') | « Source/WebKit/chromium/public/WebColorName.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698