| OLD | NEW |
| 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 488 |
| 489 if (RuntimeEnabledFeatures::inputTypeColorEnabled()) { | 489 if (RuntimeEnabledFeatures::inputTypeColorEnabled()) { |
| 490 runtimeCSS.appendLiteral("input[type=\"color\"][list] { -webkit-appe
arance: menulist; width: 88px; height: 23px;}"); | 490 runtimeCSS.appendLiteral("input[type=\"color\"][list] { -webkit-appe
arance: menulist; width: 88px; height: 23px;}"); |
| 491 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color
-swatch-wrapper { padding-left: 8px; padding-right: 24px;}"); | 491 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color
-swatch-wrapper { padding-left: 8px; padding-right: 24px;}"); |
| 492 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color
-swatch { border-color: #000000;}"); | 492 runtimeCSS.appendLiteral("input[type=\"color\"][list]::-webkit-color
-swatch { border-color: #000000;}"); |
| 493 } | 493 } |
| 494 } | 494 } |
| 495 if (RuntimeEnabledFeatures::dialogElementEnabled()) { | 495 if (RuntimeEnabledFeatures::dialogElementEnabled()) { |
| 496 runtimeCSS.appendLiteral("dialog:not([open]) { display: none; }"); | 496 runtimeCSS.appendLiteral("dialog:not([open]) { display: none; }"); |
| 497 runtimeCSS.appendLiteral("dialog { position: absolute; left: 0; right: 0
; margin: auto; border: solid; padding: 1em; background: white; color: black;}")
; | 497 runtimeCSS.appendLiteral("dialog { position: absolute; left: 0; right: 0
; margin: auto; border: solid; padding: 1em; background: white; color: black;}")
; |
| 498 runtimeCSS.appendLiteral("dialog::backdrop { background: rgba(0,0,0,0.1)
; }"); |
| 498 } | 499 } |
| 499 | 500 |
| 500 return runtimeCSS.toString(); | 501 return runtimeCSS.toString(); |
| 501 } | 502 } |
| 502 | 503 |
| 503 String RenderTheme::formatMediaControlsTime(float time) const | 504 String RenderTheme::formatMediaControlsTime(float time) const |
| 504 { | 505 { |
| 505 if (!std::isfinite(time)) | 506 if (!std::isfinite(time)) |
| 506 time = 0; | 507 time = 0; |
| 507 int seconds = (int)fabsf(time); | 508 int seconds = (int)fabsf(time); |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 | 1380 |
| 1380 // padding - not honored by WinIE, needs to be removed. | 1381 // padding - not honored by WinIE, needs to be removed. |
| 1381 style->resetPadding(); | 1382 style->resetPadding(); |
| 1382 | 1383 |
| 1383 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 1384 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
| 1384 // for now, we will not honor it. | 1385 // for now, we will not honor it. |
| 1385 style->resetBorder(); | 1386 style->resetBorder(); |
| 1386 } | 1387 } |
| 1387 | 1388 |
| 1388 } // namespace WebCore | 1389 } // namespace WebCore |
| OLD | NEW |