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

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

Issue 23060031: Set <dialog> width and height to 'fit-content'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: give dialog height auto for dialog-autoheight test Created 7 years, 3 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
« no previous file with comments | « LayoutTests/fast/regions/dialog-autoheight.html ('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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 runtimeCSS.appendLiteral("datalist {display: none ;}"); 490 runtimeCSS.appendLiteral("datalist {display: none ;}");
491 491
492 if (RuntimeEnabledFeatures::inputTypeColorEnabled()) { 492 if (RuntimeEnabledFeatures::inputTypeColorEnabled()) {
493 runtimeCSS.appendLiteral("input[type=\"color\"][list] { -webkit-appe arance: menulist; width: 88px; height: 23px;}"); 493 runtimeCSS.appendLiteral("input[type=\"color\"][list] { -webkit-appe arance: menulist; width: 88px; height: 23px;}");
494 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color -swatch-wrapper { padding-left: 8px; padding-right: 24px;}"); 494 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color -swatch-wrapper { padding-left: 8px; padding-right: 24px;}");
495 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color -swatch { border-color: #000000;}"); 495 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color -swatch { border-color: #000000;}");
496 } 496 }
497 } 497 }
498 if (RuntimeEnabledFeatures::dialogElementEnabled()) { 498 if (RuntimeEnabledFeatures::dialogElementEnabled()) {
499 runtimeCSS.appendLiteral("dialog:not([open]) { display: none; }"); 499 runtimeCSS.appendLiteral("dialog:not([open]) { display: none; }");
500 runtimeCSS.appendLiteral("dialog { position: absolute; left: 0; right: 0 ; margin: auto; border: solid; padding: 1em; background: white; color: black;}") ; 500 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;}");
501 runtimeCSS.appendLiteral("dialog::backdrop { background: rgba(0,0,0,0.1) ; }"); 501 runtimeCSS.appendLiteral("dialog::backdrop { background: rgba(0,0,0,0.1) ; }");
502 } 502 }
503 503
504 return runtimeCSS.toString(); 504 return runtimeCSS.toString();
505 } 505 }
506 506
507 String RenderTheme::formatMediaControlsTime(float time) const 507 String RenderTheme::formatMediaControlsTime(float time) const
508 { 508 {
509 if (!std::isfinite(time)) 509 if (!std::isfinite(time))
510 time = 0; 510 time = 0;
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 1399
1400 // padding - not honored by WinIE, needs to be removed. 1400 // padding - not honored by WinIE, needs to be removed.
1401 style->resetPadding(); 1401 style->resetPadding();
1402 1402
1403 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 1403 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
1404 // for now, we will not honor it. 1404 // for now, we will not honor it.
1405 style->resetBorder(); 1405 style->resetBorder();
1406 } 1406 }
1407 1407
1408 } // namespace WebCore 1408 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/regions/dialog-autoheight.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698