| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml" xlink="http://www.w3.org/1999/xlink"> | 1 <html xmlns="http://www.w3.org/1999/xhtml" xlink="http://www.w3.org/1999/xlink"> |
| 2 <body> | 2 <body> |
| 3 <svg version="1.1" xlink="http://www.w3.org/1999/xlink" width="100%" xmlns="http
://www.w3.org/2000/svg"> | 3 <svg version="1.1" xlink="http://www.w3.org/1999/xlink" width="100%" xmlns="http
://www.w3.org/2000/svg"> |
| 4 <g> | 4 <g> |
| 5 <defs> | 5 <defs> |
| 6 <font horiz-adv-x="224" id="embeded"> | 6 <font horiz-adv-x="224" id="embeded"> |
| 7 <font-face font-family="embeded" id="fontWillBeRemoved"></font-f
ace> | 7 <font-face font-family="embeded" id="fontWillBeRemoved"></font-f
ace> |
| 8 <glyph horiz-adv-x="1500" unicode="1"></glyph> | 8 <glyph horiz-adv-x="1500" unicode="1"></glyph> |
| 9 <glyph horiz-adv-x="1500" unicode="2"></glyph> | 9 <glyph horiz-adv-x="1500" unicode="2"></glyph> |
| 10 <glyph horiz-adv-x="1500" unicode="3"></glyph> | 10 <glyph horiz-adv-x="1500" unicode="3"></glyph> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 function runTest() { | 30 function runTest() { |
| 31 setTimeout(function() { | 31 setTimeout(function() { |
| 32 var fontWillBeRemoved = document.getElementById("fontWillBeRemoved"); | 32 var fontWillBeRemoved = document.getElementById("fontWillBeRemoved"); |
| 33 var use = document.getElementById("use"); | 33 var use = document.getElementById("use"); |
| 34 var text = document.getElementById("text"); | 34 var text = document.getElementById("text"); |
| 35 | 35 |
| 36 fontWillBeRemoved.parentNode.removeChild(fontWillBeRemoved); | 36 fontWillBeRemoved.parentNode.removeChild(fontWillBeRemoved); |
| 37 delete fontWillBeRemoved; | 37 delete fontWillBeRemoved; |
| 38 fontWillBeRemoved = null; | 38 fontWillBeRemoved = null; |
| 39 gc(); |
| 39 use.appendChild(text); | 40 use.appendChild(text); |
| 40 }, 0); | 41 }, 0); |
| 41 } | 42 } |
| 42 | 43 |
| 43 document.addEventListener("DOMContentLoaded", runTest, false); | 44 document.addEventListener("DOMContentLoaded", runTest, false); |
| 44 </script> | 45 </script> |
| 45 </html> | 46 </html> |
| 46 | 47 |
| OLD | NEW |