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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
diff --git a/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html b/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..5558cca91a211588027240e3d02978bc56fd0e0b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<style>
+::selection {
+ page-break-before: right;
+}
+</style>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+onload = function() {
+ 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
+ document.getElementById("text1").setAttribute("filter", "url(#f)");
+ document.execCommand("SelectAll", false);
+
+ requestAnimationFrame(function() {
+ document.vlinkColor = "#ff0000";
+ requestAnimationFrame(function() { testRunner.notifyDone(); });
+ });
+}
+</script>
+<p>PASS if no crash</p>
+<svg id="svg1">
+ <text>Text2</text>
+</svg>
+<svg>
+ <text id="text1">Text</text>
+</svg>
+<svg>
+ <filter id="f">
+ <feImage xlink:href="#svg1"/>
+ </filter>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698