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

Side by Side Diff: Source/core/rendering/RenderThemeChromiumDefault.cpp

Issue 361693004: Remove make-css-file-arrays.pl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: \s consistentcy Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * Copyright (C) 2009 Kenneth Rohde Christiansen 6 * Copyright (C) 2009 Kenneth Rohde Christiansen
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 String RenderThemeChromiumDefault::extraDefaultStyleSheet() 128 String RenderThemeChromiumDefault::extraDefaultStyleSheet()
129 { 129 {
130 // FIXME: We should not have OS() branches here. 130 // FIXME: We should not have OS() branches here.
131 // We should have something like RenderThemeWin, RenderThemeLinux, or 131 // We should have something like RenderThemeWin, RenderThemeLinux, or
132 // should concatenate UA stylesheets on build time. 132 // should concatenate UA stylesheets on build time.
133 #if !OS(WIN) 133 #if !OS(WIN)
134 return RenderThemeChromiumSkia::extraDefaultStyleSheet() + 134 return RenderThemeChromiumSkia::extraDefaultStyleSheet() +
135 #if !OS(ANDROID) 135 #if !OS(ANDROID)
136 String(themeInputMultipleFieldsUserAgentStyleSheet, sizeof(themeInputMul tipleFieldsUserAgentStyleSheet)) + 136 String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss)) +
137 #endif 137 #endif
138 String(themeChromiumLinuxUserAgentStyleSheet, sizeof(themeChromiumLinuxU serAgentStyleSheet)); 138 String(themeChromiumLinuxCss, sizeof(themeChromiumLinuxCss));
139 #else 139 #else
140 return RenderThemeChromiumSkia::extraDefaultStyleSheet() + 140 return RenderThemeChromiumSkia::extraDefaultStyleSheet() +
141 String(themeInputMultipleFieldsUserAgentStyleSheet, sizeof(themeInputMul tipleFieldsUserAgentStyleSheet)); 141 String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss)) ;
142 #endif 142 #endif
143 } 143 }
144 144
145 bool RenderThemeChromiumDefault::controlSupportsTints(const RenderObject* o) con st 145 bool RenderThemeChromiumDefault::controlSupportsTints(const RenderObject* o) con st
146 { 146 {
147 return isEnabled(o); 147 return isEnabled(o);
148 } 148 }
149 149
150 Color RenderThemeChromiumDefault::activeListBoxSelectionBackgroundColor() const 150 Color RenderThemeChromiumDefault::activeListBoxSelectionBackgroundColor() const
151 { 151 {
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 if (useMockTheme()) { 536 if (useMockTheme()) {
537 // The mock theme can't handle zoomed controls, so we fall back to the " fallback" theme. 537 // The mock theme can't handle zoomed controls, so we fall back to the " fallback" theme.
538 ControlPart part = style->appearance(); 538 ControlPart part = style->appearance();
539 if (part == CheckboxPart || part == RadioPart) 539 if (part == CheckboxPart || part == RadioPart)
540 return style->effectiveZoom() != 1; 540 return style->effectiveZoom() != 1;
541 } 541 }
542 return RenderTheme::shouldUseFallbackTheme(style); 542 return RenderTheme::shouldUseFallbackTheme(style);
543 } 543 }
544 544
545 } // namespace WebCore 545 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumAndroid.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698