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

Unified Diff: LayoutTests/svg/custom/use-target-removed.svg

Issue 1323443003: Don't transfer viewport to an invalid/dirty <use> instance (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only clear the instance root. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/custom/use-target-removed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/use-target-removed.svg
diff --git a/LayoutTests/svg/custom/use-target-removed.svg b/LayoutTests/svg/custom/use-target-removed.svg
new file mode 100644
index 0000000000000000000000000000000000000000..07c7d4a37ab83934d85ca6615f2986823dd9d700
--- /dev/null
+++ b/LayoutTests/svg/custom/use-target-removed.svg
@@ -0,0 +1,15 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <symbol id="a"/>
+ <use id="b" xlink:href="#a"/>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ b = document.getElementById('b');
+ b.href.baseVal = "#a";
+ onload = function() {
+ document.getElementById("a").remove();
+ b.setAttribute("width", 100);
+ };
+ </script>
+ <text y="20">PASS: The text is displayed and the file did not trigger a crash.</text>
+</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/use-target-removed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698