Commit Graph

292 Commits

Author SHA1 Message Date
Alex Henrie
9886906ee1 Bug 157846. Main patch: Propagate text <input> padding down to its scrolled child and add 1px left/right padding to stylesheets as needed. Fix tests. r=roc
Original patch by Charly Molter. Help from Robert O'Callahan and Jim Mathies.

--HG--
extra : rebase_source : eacfe5696e9831f149157bbd7fe697c0f8020604
2014-01-13 08:13:10 -05:00
Jonathan Watt
2851981a72 Bug 947728 part 2 - Make |-moz-appearance:number-input| the UA style sheet default for <input type=number>, and make the value 'textfield' hide the spinner. r=roc 2013-12-08 23:26:07 +00:00
Jonathan Watt
4bde6cfc06 Bug 947718 - Work around bug 946184 for Aurora. r=bz 2013-12-08 21:27:28 +00:00
Jonathan Watt
7ca9b4d4ad Bug 935508 follow-up - Put back the |height:100%| on ::-moz-number-wrapper in forms.css.
--HG--
extra : rebase_source : 191dad15f5c4e00146b29dace462eeb5fcbba878
2013-12-06 12:15:57 +00:00
Jonathan Watt
d77b910df1 Bug 935508 - Implement native theming of <input type=number>. r=roc 2013-12-05 16:20:34 +00:00
Ryan VanderMeulen
144da7f841 Backed out changesets 1b268ec6b81e, b68f5c69dce2 (bug 935508) and changesets 29db440280c8, 64f359e4e054 (bug 945784) for mochitest failures.
CLOSED TREE
2013-12-05 13:00:23 -05:00
Jonathan Watt
aa6b5e3313 Bug 935508 - Implement native theming of <input type=number>. r=roc 2013-12-05 16:20:34 +00:00
Arnaud Bienner
65a785091a Bug 943966 - Reduce color swatch min size + add a default size for input type color. r=dholbert 2013-11-30 12:36:08 +01:00
Jonathan Watt
9e03fa486d Bug 935544 - Inherit 'text-align' through <input type=number>'s anonymous content. r=dholbert 2013-11-22 13:24:55 +00:00
Jonathan Watt
7bd8b8d0b5 Bug 665884 - Redirect focus from <input type=number> to its anonymous text control, and get autofocus working. r=dbaron 2011-06-21 16:13:12 +02:00
Jonathan Watt
f8dfb4d33f Bug 635240 - Implementation of the layout and anonymous shadow tree portion of <input type=number>. r=dholbert 2013-09-04 11:30:36 +01:00
Arnaud Bienner
6ab018cc0d Bug 931619 - Add a tiny border to the color swatch. r=dholbert 2013-11-13 17:59:56 +01:00
Daniel Holbert
cd758b567d Bug 932066: Turn input[type="color"] style on or off based on a -moz-system-metric pseudoclass instead of an %ifdef. r=jimm 2013-11-11 12:08:40 -08:00
Mats Palmgren
658d88ad79 Bug 891018 - CSS cursor property does not work properly on disabled inputs. r=bz 2013-11-01 20:31:06 +00:00
Arnaud Bienner
b7d6e57361 Bug 930277 - Toggle dom.forms.color on everywhere but on B2G, Android and Metro as these platforms don't have a color picker ready yet. r=dholbert 2013-10-28 19:56:59 +01:00
Arnaud Bienner
722d4bbb4f Bug 928891 part 2 - Add input[type=color] to forms.css. r=dholbert 2013-10-27 01:16:42 +02:00
Arnaud Bienner
e011b41277 Bug 928891 part 1 - Split button properties in forms.css (text vs non-text). r=dholbert 2013-10-27 00:25:58 +02:00
Robert O'Callahan
662b96cf0e Bug 261037. Support scrolled fieldsets. r=mats
--HG--
extra : rebase_source : 248521189921b2a46f0805582a3789b27c26ecbd
2013-10-23 00:46:40 +02:00
Ed Morley
7e0379a38e Backed out changeset ce20f4b16d56 (bug 261037) for reftest failures in 478811-1.html on a CLOSED TREE 2013-10-24 10:28:44 +01:00
Robert O'Callahan
71c26b9e54 Bug 261037. Support scrolled fieldsets. r=mats
The main change here is to have nsCSSFrameConstructor able to construct
a scrollframe for nsFieldSetFrame's inner frame.
To make this work properly (as much like normal scrolled elements, and
to be consistent with Chrome), we need another major change, which is to move
the padding from the nsFieldSetFrame to its inner frame. We do this by copying
the padding to the inner frame and ignoring the padding on the outer frame.
To get this right for percentage padding and intrinsic widths is a little
tricky. For that, we need nsLayoutUtils::IntrinsicForContainer to be able to
ignore the padding on a frame so we don't add it twice.
Overriding nsFieldSetFrame::GetScrollTargetFrame makes setting scrollTop/
scrollLeft on a <fieldset> work as expected.
* * *
Bug 261037 - A fieldset overflow:auto reftest.

--HG--
extra : rebase_source : d737eebdc25b3b748a84de676d5e8e066505e00b
2013-10-23 00:46:40 +02:00
Ed Morley
45a4b4555f Backed out changeset ffd9c7bbd2fe (bug 261037) for compilation failures in nsCSSFrameConstructor on a CLOSED TREE 2013-10-23 15:44:19 +01:00
Robert O'Callahan
c911ce58ef Bug 261037. Support scrolled fieldsets. r=mats
The main change here is to have nsCSSFrameConstructor able to construct
a scrollframe for nsFieldSetFrame's inner frame.
To make this work properly (as much like normal scrolled elements, and
to be consistent with Chrome), we need another major change, which is to move
the padding from the nsFieldSetFrame to its inner frame. We do this by copying
the padding to the inner frame and ignoring the padding on the outer frame.
To get this right for percentage padding and intrinsic widths is a little
tricky. For that, we need nsLayoutUtils::IntrinsicForContainer to be able to
ignore the padding on a frame so we don't add it twice.
Overriding nsFieldSetFrame::GetScrollTargetFrame makes setting scrollTop/
scrollLeft on a <fieldset> work as expected.
* * *
Bug 261037 - A fieldset overflow:auto reftest.

--HG--
extra : rebase_source : 6ca585f685965d3a538bde64ad4057c5fd7b538f
2013-10-23 00:46:40 +02:00
Daniel Holbert
e48007a2d4 Bug 875275 part 2: simplify forms.css for input[type="color"]. r=arnaud.bienner 2013-10-22 17:29:20 +02:00
Arnaud Bienner
574b47d090 Bug 875275 part 1: Implement layout support for <input type="color">. r=dbaron,dholbert 2013-07-10 00:25:27 +02:00
Mounir Lamouri
7cb7b39390 Bug 874600 - Make <input type='file'> label colour inherits from the parent's colour. r=bz 2013-05-23 14:09:45 +01:00
Mounir Lamouri
d3e7b3b159 Bug 52500 - Allow styling <input type='file'> like any other form control. r=bz
--HG--
rename : layout/reftests/forms/input-file-width-clip-ref.html => layout/reftests/forms/input/file/input-file-width-clip-ref.html
rename : layout/reftests/forms/input-file-width-clip-1.html => layout/reftests/forms/input/file/input-file-width-clip.html
2013-05-17 18:40:14 +01:00
Jonathan Watt
192397aeed Bug 864120 - Use a display list item to create the focus ring for <input type=range>. r=roc 2013-04-22 10:11:56 +01:00
Masatoshi Kimura
baee7fa4d1 Bug 771975 - Remove -moz-prefixed gradients usage from rest of the tree. r=roc 2013-04-09 07:44:26 +09:00
Mounir Lamouri
30bf2eb38b Bug 857536 - Cleanup the CSS properties applied on <input type='file'> from forms.css. r=bz 2013-04-04 10:39:29 +01:00
Jonathan Watt
ebb97727c3 Bug 857034 - Add support for native theming of <input type=range> on Windows. r=roc 2013-04-03 11:07:12 +01:00
Mounir Lamouri
65800713ef Bug 839788 - Switch Browse button from an <input> to a <button>. r=bz 2013-03-29 12:32:47 +00:00
Ryan VanderMeulen
5e42e53e96 Backed out changeset fa9cde226b2a (bug 839788) for breaking mochitests the same way it did the first time it landed on a CLOSED TREE. 2013-03-28 21:17:42 -04:00
Mounir Lamouri
eadf5f190e Bug 839788 - Switch Browse button from an <input> to a <button>. r=bz 2013-03-28 11:24:14 +00:00
Jonathan Watt
ecfd1c5f3e Bug 855301 - Add support for native theming of <input type=range> on Linux. r=roc 2013-03-28 20:25:05 +00:00
Ryan VanderMeulen
a806c3138e Backed out changeset f0b16aba4df7 (bug 839788) for mochitest failures on a CLOSED TREE. 2013-03-28 08:49:04 -04:00
Mounir Lamouri
f839c90393 Bug 839788 - Switch Browse button from an <input> to a <button>. r=bz 2013-03-28 11:24:14 +00:00
Jonathan Watt
ce9ffb2628 Bug 854538 - Add a ::-moz-range-progress pseudo-element to <input type=range> for Firefox OS. r=dholbert 2013-03-26 23:04:41 +00:00
Mounir Lamouri
c1364807c4 Bug 762270 - Align the file name to the right when direction is RTL. r=smontagu 2013-02-13 14:47:59 +00:00
Mounir Lamouri
7850c1dffd Bug 838694 - Move the text showing the file name to the right of the browse button. r=bz 2013-02-09 15:09:14 +00:00
Mounir Lamouri
8a01249a9f Bug 345195 - Replace the anonymous <input type='text'> in <input type='file'> by a xul:label. r=bz 2013-02-09 14:57:30 +00:00
Daniel Holbert
eee60fbb93 Backout e912de49c12b (Bug 854538) due to M5 & crashtest oranges on a CLOSED TREE 2013-03-26 17:28:14 -07:00
Jonathan Watt
3ea1b4dc5c Bug 854538 - Add a ::-moz-range-progress pseudo-element to <input type=range> for Firefox OS. r=dholbert 2013-03-26 23:04:41 +00:00
Jonathan Watt
3e91baaeae Bug 840820 - Make <input type=range> display as a vertical slider if it has an orient="vertical" attribute. r=mounir 2013-03-26 13:54:05 +00:00
Jonathan Watt
d2f1f7d2f4 Bug 846380 - Add support for dragging of <input type=range>'s thumb using mouse/touch events. r=smaug, r=mounir. 2013-03-08 09:40:12 +00:00
Jonathan Watt
fe9039c80c Bug 843725 - Add support for changing the value of <input type=range> using the up/down/left/right/pgup/pgdn/home/end keys. r=mounir, r=smaug. 2013-03-01 15:34:06 +00:00
Ryan VanderMeulen
403adefd17 Backed out changeset 96c03dab9222 (bug 843725) for mochitest-5 failures on a CLOSED TREE. 2013-03-01 11:48:04 -05:00
Jonathan Watt
ad65ad92ae Bug 843725 - Add support for changing the value of <input type=range> using the up/down/left/right/pgup/pgdn/home/end keys. r=mounir, r=smaug. 2013-03-01 15:34:06 +00:00
Mounir Lamouri
f489fdedf7 Bug 375008 - Clicking a disabled element should not cause a focus change. r=Enn 2013-03-01 00:15:59 +00:00
Mounir Lamouri
3d31cd2ab1 No Bug - Backout bug 375008 (6c59b73c8c4b) and re-enable test_focus.xul. r=distress 2013-02-27 15:53:41 +00:00
Mounir Lamouri
6bcee6bb6d Bug 375008 - Clicking a disabled element should not cause a focus change. r=Enn 2013-02-27 14:17:43 +00:00