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

Side by Side Diff: LayoutTests/svg/custom/use-referencing-animation-crash.html

Issue 1105873002: Avoid transiently creating disallowed elements when building <use> trees (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/custom/use-referencing-animation-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <svg>
3 <set id='cssPropAnim' xlink:href='#cssPropAnim' attributeName='fill' to='gold' ></set>
4 <rect id='someRect'><animate></animate></rect>
5 <use clip-path='url(#someRect)' xlink:href='#cssPropAnim'></use>
6 </svg>
7 <p>PASS if no crash in debug.</p>
8 <script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
12 }
13 function completionTrigger() {
14 var set = document.createElementNS('http://www.w3.org/2000/svg', 'set');
15 set.setAttribute('attributeName', 'x');
16 set.setAttribute('to', '0');
17 set.onbegin = function() {
18 if (window.testRunner)
19 testRunner.notifyDone();
20 };
21 return set;
22 }
23 var root = document.getElementsByTagName('svg')[0];
24 root.pauseAnimations();
25
26 onload = function () {
27 requestAnimationFrame(function() {
28 setTimeout(function() {
29 root.style.zoom = 2;
30 root.appendChild(document.getElementById('someRect').cloneNode(true));
31 root.appendChild(completionTrigger());
32 }, 0);
33 });
34 }
35 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/use-referencing-animation-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698