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

Side by Side Diff: LayoutTests/svg/custom/use-instanceRoot-with-use-removed.svg

Issue 272523002: Remove SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address esprehns nits Created 6 years, 6 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
OLDNEW
(Empty)
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k">
2 <script>
3 <![CDATA[
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 gc = function(){window.GCController.collect()};
8 } else if (!window.gc)
9 gc = function(){};
10
11 window.onload = function(){
12 if (location.hash != "#2") {
13 if (location.hash)
14 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin g();
15 else
16 location.hash = "#1";
17 var ir = document.getElementById("use1").instanceRoot;
18 ir.correspondingUseElement.parentElement.removeChild(ir.correspondingUse Element);
19 gc();
20 ir.correspondingUseElement;
21 setTimeout(function(){location.reload()},0);
22 } else {
23 document.getElementById("t1").appendChild(document.createTextNode("PASS: Successfully removed use element."));
24 if (window.testRunner)
25 testRunner.notifyDone();
26 }
27 }
28 //]]>
29 </script>
30 <g id="g1" />
31 <use xlink:href="#g1" id="use1" />
32 <text x="20" y="20" fill="green" id="t1"></text>
33 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698