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

Unified Diff: LayoutTests/svg/custom/pattern-content-cycle-w-resourceless-container.html

Issue 294393004: Simplify SVGResourcesCycleSolver::resourceContainsCycles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fold the method; Use pre-order traversal to avoid recursion. Created 6 years, 7 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/pattern-content-cycle-w-resourceless-container-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/pattern-content-cycle-w-resourceless-container.html
diff --git a/LayoutTests/svg/custom/pattern-content-cycle-w-resourceless-container.html b/LayoutTests/svg/custom/pattern-content-cycle-w-resourceless-container.html
new file mode 100644
index 0000000000000000000000000000000000000000..6602a51d18999e820aa53b940bbe4e60b2d2e660
--- /dev/null
+++ b/LayoutTests/svg/custom/pattern-content-cycle-w-resourceless-container.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ window.onload = function() {
+ testRunner.displayAsyncThen(function() { testRunner.notifyDone(); });
+ };
+}
+</script>
+<p>PASS if no crash (stack overflow).</p>
+<svg width="100" height="100">
+ <rect fill="url(#p1)" width="100" height="100"/>
+ <pattern id="p2" width="1" height="1">
+ <g>
+ <rect fill="url(#p1)" width="100" height="100"/>
+ </g>
+ </pattern>
+ <pattern id="p1" width="1" height="1">
+ <g>
+ <rect fill="url(#p2)" width="100" height="100"/>
+ </g>
+ </pattern>
+</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/pattern-content-cycle-w-resourceless-container-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698