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

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

Issue 174833002: Move UA style rulesets for <datalist> and input[type=color][list] to html.css (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« Source/core/css/html.css ('K') | « Source/core/css/html.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 default: 434 default:
435 break; 435 break;
436 } 436 }
437 437
438 return false; 438 return false;
439 } 439 }
440 440
441 String RenderTheme::extraDefaultStyleSheet() 441 String RenderTheme::extraDefaultStyleSheet()
442 { 442 {
443 StringBuilder runtimeCSS; 443 StringBuilder runtimeCSS;
444
445 runtimeCSS.appendLiteral("datalist {display: none ;}");
446
447 runtimeCSS.appendLiteral("input[type=\"color\"][list] { -webkit-appearance: menulist; width: 88px; height: 23px;}");
448 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color-swatch- wrapper { padding-left: 8px; padding-right: 24px;}");
449 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color-swatch { border-color: #000000;}");
450
451 if (RuntimeEnabledFeatures::dialogElementEnabled()) { 444 if (RuntimeEnabledFeatures::dialogElementEnabled()) {
452 runtimeCSS.appendLiteral("dialog:not([open]) { display: none; }"); 445 runtimeCSS.appendLiteral("dialog:not([open]) { display: none; }");
453 runtimeCSS.appendLiteral("dialog { position: absolute; left: 0; right: 0 ; width: -webkit-fit-content; height: -webkit-fit-content; margin: auto; border: solid; padding: 1em; background: white; color: black;}"); 446 runtimeCSS.appendLiteral("dialog { position: absolute; left: 0; right: 0 ; width: -webkit-fit-content; height: -webkit-fit-content; margin: auto; border: solid; padding: 1em; background: white; color: black;}");
454 runtimeCSS.appendLiteral("dialog::backdrop { position: fixed; top: 0; ri ght: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.1); }"); 447 runtimeCSS.appendLiteral("dialog::backdrop { position: fixed; top: 0; ri ght: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.1); }");
455 } 448 }
456 449
457 return runtimeCSS.toString(); 450 return runtimeCSS.toString();
458 } 451 }
459 452
460 String RenderTheme::formatMediaControlsTime(float time) const 453 String RenderTheme::formatMediaControlsTime(float time) const
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 1260
1268 // padding - not honored by WinIE, needs to be removed. 1261 // padding - not honored by WinIE, needs to be removed.
1269 style->resetPadding(); 1262 style->resetPadding();
1270 1263
1271 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 1264 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
1272 // for now, we will not honor it. 1265 // for now, we will not honor it.
1273 style->resetBorder(); 1266 style->resetBorder();
1274 } 1267 }
1275 1268
1276 } // namespace WebCore 1269 } // namespace WebCore
OLDNEW
« Source/core/css/html.css ('K') | « Source/core/css/html.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698