Changeset 49619 in webkit
- Timestamp:
- Oct 15, 2009 5:49:25 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49616 r49619 1 2009-10-15 Shu Chang <Chang.Shu@nokia.com> 2 3 Reviewed by Adele Peterson. 4 5 Change behavior so that <a> element is always mouse-focusable. 6 7 * fast/events/click-focus-anchor-expected.txt: 8 * fast/events/click-focus-anchor.html: 9 1 10 2009-10-15 Yury Semikhatsky <yurys@chromium.org> 2 11 -
trunk/LayoutTests/fast/events/click-focus-anchor-expected.txt
r48106 r49619 1 This test ensures that we can click to focus an a element with a tab index. Click on the element below.1 This test ensures that we can click to focus an a element. Click on the element below. 2 2 3 Focusable 3 Focusable anchor with tab index 4 5 Focusable anchor 4 6 5 7 Result 6 8 7 9 PASS 10 PASS -
trunk/LayoutTests/fast/events/click-focus-anchor.html
r48211 r49619 5 5 <body> 6 6 7 <p>This test ensures that we can click to focus an a element with a tab index.7 <p>This test ensures that we can click to focus an a element. 8 8 Click on the element below. 9 9 10 <p><a tabindex=0 onfocus="pass()" id=t>Focusable</a> 10 <p><a tabindex=0 onfocus="pass('r1')" id=t1>Focusable anchor with tab index</a> 11 <p><a onfocus="pass('r2')" id=t2 href="#">Focusable anchor</a> 11 12 12 13 <p>Result 13 14 14 <pre>FAIL</pre> 15 <pre id=r1>FAIL</pre> 16 <pre id=r2>FAIL</pre> 15 17 16 18 <script> 17 19 18 function pass( )20 function pass(id) 19 21 { 20 var el = document. querySelector('pre');22 var el = document.getElementById(id); 21 23 el.textContent = 'PASS'; 22 24 } … … 32 34 return; 33 35 34 var aElement = document.getElementById('t'); 36 var aElement = document.getElementById('t1'); 37 eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2); 38 eventSender.mouseDown(); 39 40 aElement = document.getElementById('t2'); 35 41 eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2); 36 42 eventSender.mouseDown(); -
trunk/WebCore/ChangeLog
r49617 r49619 1 2009-10-15 Shu Chang <Chang.Shu@nokia.com> 2 3 Reviewed by Adele Peterson. 4 5 Anchor elements should be mouse focusable regardless isLink flag. 6 https://bugs.webkit.org/show_bug.cgi?id=26856 7 8 * html/HTMLAnchorElement.cpp: 9 * html/HTMLAnchorElement.h: 10 1 11 2009-10-15 Nikolas Zimmermann <nzimmermann@rim.com> 2 12 -
trunk/WebCore/html/HTMLAnchorElement.cpp
r48107 r49619 68 68 { 69 69 // Anchor elements should be mouse focusable, https://bugs.webkit.org/show_bug.cgi?id=26856 70 #if !PLATFORM(GTK)70 #if PLATFORM(MAC) 71 71 if (isLink()) 72 72 return false;
Note: See TracChangeset
for help on using the changeset viewer.