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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTheme.cpp

Issue 2005093002: Remove non-standard 'results' attribute of INPUT element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 * 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return adjustMenuListStyle(style, e); 210 return adjustMenuListStyle(style, e);
211 case MenulistButtonPart: 211 case MenulistButtonPart:
212 return adjustMenuListButtonStyle(style, e); 212 return adjustMenuListButtonStyle(style, e);
213 case SliderThumbHorizontalPart: 213 case SliderThumbHorizontalPart:
214 case SliderThumbVerticalPart: 214 case SliderThumbVerticalPart:
215 return adjustSliderThumbStyle(style); 215 return adjustSliderThumbStyle(style);
216 case SearchFieldPart: 216 case SearchFieldPart:
217 return adjustSearchFieldStyle(style); 217 return adjustSearchFieldStyle(style);
218 case SearchFieldCancelButtonPart: 218 case SearchFieldCancelButtonPart:
219 return adjustSearchFieldCancelButtonStyle(style); 219 return adjustSearchFieldCancelButtonStyle(style);
220 case SearchFieldDecorationPart:
221 return adjustSearchFieldDecorationStyle(style);
222 case SearchFieldResultsDecorationPart:
223 return adjustSearchFieldResultsDecorationStyle(style);
224 default: 220 default:
225 break; 221 break;
226 } 222 }
227 } 223 }
228 224
229 String LayoutTheme::extraDefaultStyleSheet() 225 String LayoutTheme::extraDefaultStyleSheet()
230 { 226 {
231 StringBuilder runtimeCSS; 227 StringBuilder runtimeCSS;
232 if (RuntimeEnabledFeatures::contextMenuEnabled()) 228 if (RuntimeEnabledFeatures::contextMenuEnabled())
233 runtimeCSS.appendLiteral("menu[type=\"popup\" i] { display: none; }"); 229 runtimeCSS.appendLiteral("menu[type=\"popup\" i] { display: none; }");
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 } 637 }
642 638
643 void LayoutTheme::adjustSearchFieldStyle(ComputedStyle&) const 639 void LayoutTheme::adjustSearchFieldStyle(ComputedStyle&) const
644 { 640 {
645 } 641 }
646 642
647 void LayoutTheme::adjustSearchFieldCancelButtonStyle(ComputedStyle&) const 643 void LayoutTheme::adjustSearchFieldCancelButtonStyle(ComputedStyle&) const
648 { 644 {
649 } 645 }
650 646
651 void LayoutTheme::adjustSearchFieldDecorationStyle(ComputedStyle&) const
652 {
653 }
654
655 void LayoutTheme::adjustSearchFieldResultsDecorationStyle(ComputedStyle&) const
656 {
657 }
658
659 void LayoutTheme::platformColorsDidChange() 647 void LayoutTheme::platformColorsDidChange()
660 { 648 {
661 Page::platformColorsChanged(); 649 Page::platformColorsChanged();
662 } 650 }
663 651
664 static FontDescription& getCachedFontDescription(CSSValueID systemFontID) 652 static FontDescription& getCachedFontDescription(CSSValueID systemFontID)
665 { 653 {
666 DEFINE_STATIC_LOCAL(FontDescription, caption, ()); 654 DEFINE_STATIC_LOCAL(FontDescription, caption, ());
667 DEFINE_STATIC_LOCAL(FontDescription, icon, ()); 655 DEFINE_STATIC_LOCAL(FontDescription, icon, ());
668 DEFINE_STATIC_LOCAL(FontDescription, menu, ()); 656 DEFINE_STATIC_LOCAL(FontDescription, menu, ());
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 905
918 // padding - not honored by WinIE, needs to be removed. 906 // padding - not honored by WinIE, needs to be removed.
919 style.resetPadding(); 907 style.resetPadding();
920 908
921 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 909 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
922 // for now, we will not honor it. 910 // for now, we will not honor it.
923 style.resetBorder(); 911 style.resetBorder();
924 } 912 }
925 913
926 } // namespace blink 914 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.h ('k') | third_party/WebKit/Source/core/layout/LayoutThemeDefault.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698