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

Side by Side Diff: LayoutTests/fast/dom/remove-svg-font-face-element-crash.xhtml

Issue 216563002: [SVG Fonts] Fix <font-face> element leak document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/svg/svg-font-face-leak-document.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/svg-font-face-leak-document.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698