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

Unified Diff: LayoutTests/svg/custom/use-href-attr-removal-crash.html

Issue 1287243003: Don't require a valid reference scope for a <use> shadow tree update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop referenceScope check from scheduleShadowTreeRecreation. Created 5 years, 4 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-href-attr-removal-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/use-href-attr-removal-crash.html
diff --git a/LayoutTests/svg/custom/use-href-attr-removal-crash.html b/LayoutTests/svg/custom/use-href-attr-removal-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..8004f499f80eabb5bfbed23d7f3cf237cd9cb8e6
--- /dev/null
+++ b/LayoutTests/svg/custom/use-href-attr-removal-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<p>PASS if no crash.</p>
+<svg>
+ <symbol id="a"><rect width="100" height="100" fill="blue"/></symbol>
+ <use id="b" xlink:href="#a"></use>
+ <rect id="c" width="100" height="100" fill="red"/>
+</svg>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ var use = document.getElementById('b');
+ use.removeAttribute("xlink:href");
+ var symbol = document.getElementById("a");
+ symbol.appendChild(document.getElementById("c"));
+ use.setAttribute("height", "100");
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/use-href-attr-removal-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698