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

Side by Side Diff: LayoutTests/svg/custom/pointer-events-on-rounded-rect.xhtml

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix review comment Created 7 years, 7 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
OLDNEW
1 <html xmlns='http://www.w3.org/1999/xhtml'> 1 <html xmlns='http://www.w3.org/1999/xhtml'>
2 <body style="margin: 0px; padding: 0px"> 2 <body style="margin: 0px; padding: 0px">
3 3
4 <svg xmlns="http://www.w3.org/2000/svg" style="position:absolute;"> 4 <svg xmlns="http://www.w3.org/2000/svg" style="position:absolute;">
5 <defs> 5 <defs>
6 6
7 <style type="text/css"><![CDATA[ 7 <style type="text/css"><![CDATA[
8 rect#roundedRect { 8 rect#roundedRect {
9 fill: none; 9 fill: none;
10 stroke: green; 10 stroke: green;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 text.textContent = 'PASSED: fallbackRect had pointer'; 48 text.textContent = 'PASSED: fallbackRect had pointer';
49 stop(); 49 stop();
50 } 50 }
51 51
52 if (window.testRunner) { 52 if (window.testRunner) {
53 testRunner.waitUntilDone(); 53 testRunner.waitUntilDone();
54 testRunner.dumpAsText(); 54 testRunner.dumpAsText();
55 } 55 }
56 56
57 if (window.eventSender) { 57 if (window.eventSender) {
58 // Mouse events only work after an initial layout
59 document.body.offsetLeft;
58 eventSender.mouseMoveTo(31, 31); 60 eventSender.mouseMoveTo(31, 31);
59 eventSender.mouseDown(); 61 eventSender.mouseDown();
60 } 62 }
61 ]]> 63 ]]>
62 </script> 64 </script>
63 65
64 </svg> 66 </svg>
65 </body> 67 </body>
66 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698