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

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

Issue 1405283006: Deprecate SVGElement.offsetParent/offsetTop/offsetLeft/offsetWidth/offsetHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the tests instead Created 5 years, 1 month 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
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.testRunner) 12 if (window.testRunner)
13 » testRunner.dumpAsText(); 13 testRunner.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').clientTop;
20 range.surroundContents(document.getElementById("tspan1")); 20 range.surroundContents(document.getElementById("tspan1"));
21 </script> 21 </script>
22 </svg> 22 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698