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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html

Issue 2846513002: More targeted resource-switching mechanism for SVG selection painting (Closed)
Patch Set: Rebased onto dependent patch(es) Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 ::selection {
4 page-break-before: right;
5 }
6 </style>
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11 }
12 onload = function() {
13 document.body.offsetTop;
Stephen Chennney 2017/04/28 16:12:31 This might be to force layout. Can it be switched
fs 2017/04/28 18:16:33 Yes, we want layout to be clean before adding the
fs 2017/05/02 13:53:32 I tried inserting a runAfterLayoutAndPaint to repl
14 document.getElementById("text1").setAttribute("filter", "url(#f)");
15 document.execCommand("SelectAll", false);
16
17 requestAnimationFrame(function() {
18 document.vlinkColor = "#ff0000";
19 requestAnimationFrame(function() { testRunner.notifyDone(); });
20 });
21 }
22 </script>
23 <p>PASS if no crash</p>
24 <svg id="svg1">
25 <text>Text2</text>
26 </svg>
27 <svg>
28 <text id="text1">Text</text>
29 </svg>
30 <svg>
31 <filter id="f">
32 <feImage xlink:href="#svg1"/>
33 </filter>
34 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698