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

Side by Side Diff: LayoutTests/svg/text/inline-text-destroy-attributes-crash.xhtml

Issue 6913012: Merge 85335 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | LayoutTests/svg/text/inline-text-destroy-attributes-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k">
3 <defs> 3 <defs>
4 <text id="text1"> 4 <text id="text1">
5 <tspan id="tspan1" x="906" y="250">Test passes it if does not crash</tsp an> 5 <tspan id="tspan1" x="906" y="250">Test passes it if does not crash</tsp an>
6 <tspan id="tspan2" x="447" y="108">PASS</tspan> 6 <tspan id="tspan2" x="447" y="108">PASS</tspan>
7 </text> 7 </text>
8 </defs> 8 </defs>
9 <use id="use1" xlink:href="#text1"/> 9 <use id="use1" xlink:href="#text1"/>
10 <text id="text2"></text> 10 <text id="text2"></text>
11 <script> 11 <script>
12 if (window.layoutTestController) 12 if (window.layoutTestController)
13 layoutTestController.dumpAsText(); 13 layoutTestController.dumpAsText();
14 14
15 var range = document.createRange(); 15 var range = document.createRange();
16 range.setStart(document.getElementById("use1"), 0); 16 range.setStart(document.getElementById("use1"), 0);
17 range.setEnd(document.getElementById("text2"), 0); 17 range.setEnd(document.getElementById("text2"), 0);
18 (new XMLSerializer()).serializeToString(range.extractContents()); 18 (new XMLSerializer()).serializeToString(range.extractContents());
19 document.getElementById('text1').offsetTop; 19 document.getElementById('text1').offsetTop;
20 range.surroundContents(document.getElementById("tspan1")); 20 range.surroundContents(document.getElementById("tspan1"));
21 </script> 21 </script>
22 </svg> 22 </svg>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/text/inline-text-destroy-attributes-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698