Reviewed by Adam.
- Updated results for <rdar://problem/
4463841> Switch to use new list box implementation for <select multiple>
* fast/forms/HTMLOptionElement_label05-expected.checksum:
* fast/forms/HTMLOptionElement_label05-expected.png:
* fast/forms/HTMLOptionElement_label05-expected.txt:
* fast/forms/form-element-geometry-expected.checksum:
* fast/forms/form-element-geometry-expected.png:
* fast/forms/form-element-geometry-expected.txt:
* fast/forms/option-strip-whitespace-expected.checksum:
* fast/forms/option-strip-whitespace-expected.png:
* fast/forms/option-strip-whitespace-expected.txt:
* fast/forms/password-doubleclick-selection-expected.txt: Added.
* fast/forms/password-doubleclick-selection.html: Added.
* fast/forms/select-change-popup-to-listbox-expected.checksum:
* fast/forms/select-change-popup-to-listbox-expected.png:
* fast/forms/select-change-popup-to-listbox-expected.txt:
* fast/text/updateNewFont-expected.checksum:
* fast/text/updateNewFont-expected.png:
* fast/text/updateNewFont-expected.txt:
WebCore:
Reviewed by Adam.
- Fix for <rdar://problem/
4463841> Switch to use new list box implementation for <select multiple>
There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
by using "-webkit-appearance:none".
* css/html4.css:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16718
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-10-02 Adele Peterson <adele@apple.com>
+
+ Reviewed by Adam.
+
+ - Updated results for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
+
+ * fast/forms/HTMLOptionElement_label05-expected.checksum:
+ * fast/forms/HTMLOptionElement_label05-expected.png:
+ * fast/forms/HTMLOptionElement_label05-expected.txt:
+ * fast/forms/form-element-geometry-expected.checksum:
+ * fast/forms/form-element-geometry-expected.png:
+ * fast/forms/form-element-geometry-expected.txt:
+ * fast/forms/option-strip-whitespace-expected.checksum:
+ * fast/forms/option-strip-whitespace-expected.png:
+ * fast/forms/option-strip-whitespace-expected.txt:
+ * fast/forms/password-doubleclick-selection-expected.txt: Added.
+ * fast/forms/password-doubleclick-selection.html: Added.
+ * fast/forms/select-change-popup-to-listbox-expected.checksum:
+ * fast/forms/select-change-popup-to-listbox-expected.png:
+ * fast/forms/select-change-popup-to-listbox-expected.txt:
+ * fast/text/updateNewFont-expected.checksum:
+ * fast/text/updateNewFont-expected.png:
+ * fast/text/updateNewFont-expected.txt:
+
2006-10-01 Maciej Stachowiak <mjs@apple.com>
Rubber stamped by Alexey.
-4e5bf2bb603a97f4173e63946bf94d11
\ No newline at end of file
+a28ffbb51a1966d1c0125a7c4b2833c4
\ No newline at end of file
RenderText {#text} at (0,0) size 668x18
text run at (0,0) width 668: "In the list box below, the text \"This text should appear\" should be shown as the first entry into the list box."
RenderBR {BR} at (668,14) size 0x0
- DeprecatedRenderSelect {SELECT} at (2,20) size 144x72
+ RenderListBox {SELECT} at (2,20) size 144x72 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
RenderText {#text} at (0,0) size 0x0
-a8d1c2f6e6f0500f6481f30518f36a19
\ No newline at end of file
+523f7c9b530ea3ef2bf6eb442b6d79e0
\ No newline at end of file
RenderTextField {INPUT} at (2,2) size 78x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
RenderTableCell {TD} at (88,2) size 40x64 [r=0 c=1 rs=1 cs=1]
RenderBlock {DIV} at (1,1) size 38x62 [border: (2px solid #0000FF)]
- DeprecatedRenderSelect {SELECT} at (2,2) size 34x58
+ RenderListBox {SELECT} at (2,2) size 34x58 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
RenderTableCell {TD} at (130,2) size 243x24 [r=0 c=2 rs=1 cs=1]
RenderBlock {DIV} at (1,1) size 241x22 [border: (2px solid #0000FF)]
RenderFileUploadControl {INPUT} at (2,2) size 237x18
-a26974ff1cb0e2dc0d75248939318443
\ No newline at end of file
+3b5d1b87b0bff73ccf37e6b2b84a7aa5
\ No newline at end of file
RenderBlock (anonymous) at (0,34) size 784x262
RenderText {#text} at (0,41) size 71x18
text run at (0,41) width 71: "Five Tabs: "
- DeprecatedRenderSelect {SELECT} at (73,2) size 67x58
+ RenderListBox {SELECT} at (73,2) size 67x58 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
RenderBR {BR} at (142,55) size 0x0
RenderBR {BR} at (0,62) size 0x18
RenderText {#text} at (0,121) size 84x18
text run at (0,121) width 84: "Five Spaces: "
- DeprecatedRenderSelect {SELECT} at (86,82) size 67x58
+ RenderListBox {SELECT} at (86,82) size 67x58 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
RenderBR {BR} at (155,135) size 0x0
RenderBR {BR} at (0,142) size 0x18
RenderText {#text} at (0,161) size 298x18
--- /dev/null
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 5 of #text > DIV to 5 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV to 5 of #text > DIV toDOMRange:range from 0 of #text > DIV to 11 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+ This tests that double clicking in a password field will not expose word boundaries.
+
+Test Passed.
+
--- /dev/null
+<html>
+<head>
+ <script>
+ function test() {
+ var pass = document.getElementById('tf');
+ var res = document.getElementById('res');
+
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ eventSender.mouseMoveTo(45, 25);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ if (pass.selectionStart == 0 && pass.selectionEnd == 11)
+ res.innerHTML = "Test Passed.";
+ else
+ res.innerHTML = "Test Failed. SelectionStart index = " + pass.selectionStart + ". SelectionEnd index = " + pass.selectionEnd + ".";
+ }
+ }
+ </script>
+</head>
+<body onload="test()">
+ <input type="password" value="123 456 789" id="tf"></input>
+ This tests that double clicking in a password field will not expose word boundaries.<br>
+ <br><div id="res"></div>
+</body>
+</html>
-def7c5619e192ec85dc9bd307dc08f9a
\ No newline at end of file
+34ba05e2dd0fccccacef71e3dc6cc004
\ No newline at end of file
RenderText {#text} at (0,0) size 449x18
text run at (0,0) width 449: "This tests that you can dynamically change a popup menu to a list box. "
RenderBR {BR} at (449,14) size 0x0
- DeprecatedRenderSelect {SELECT} at (2,20) size 183x72
+ RenderListBox {SELECT} at (2,20) size 183x72 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
RenderText {#text} at (0,0) size 0x0
-a99b87e29c6e9bf1b8e56eb2fc65b4a7
\ No newline at end of file
+ed271e1e1f56ec84a029a840065338c3
\ No newline at end of file
layer at (0,0) size 800x126
RenderBlock {HTML} at (0,0) size 800x126
RenderBody {BODY} at (8,8) size 784x110
- DeprecatedRenderSelect {SELECT} at (0,0) size 34x110
+ RenderListBox {SELECT} at (0,0) size 34x110 [bgcolor=#FFFFFF] [border: (1px inset #808080)]
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
+2006-10-02 Adele Peterson <adele@apple.com>
+
+ Reviewed by Adam.
+
+ - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
+
+ There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
+ by using "-webkit-appearance:none".
+
+ * css/html4.css:
+
2006-10-02 David Harrison <harrison@apple.com>
Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
select[size],
select[multiple],
select[size][multiple] {
- /* FIXME: When converting the list box implementation, remove these. */
+ /* FIXME: If we need to switch back to the old listbox implementation, switch the commented style blocks here */
+
+ /* Old listbox appearance */
+ /*
-webkit-appearance: none;
-webkit-box-align: initial;
box-sizing: initial;
color: initial;
border: initial;
background-color: initial;
- /*
+ */
+
+ /* New listbox appearance */
-webkit-appearance: listbox;
-webkit-box-align: start;
box-sizing: initial;
border: 1px inset gray;
-webkit-border-radius: initial;
white-space: initial;
- */
}
select[size="0"],