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

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: Use rALAP instead of first rAF 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e0a4d2380d81cb6896ed31d5f1f5dfada539bef7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<style>
+::selection {
+ page-break-before: right;
+}
+</style>
+<script>
+async_test(t => {
+ window.onload = t.step_func(() => {
+ document.body.offsetTop;
+ document.getElementById("text1").setAttribute("filter", "url(#f)");
+ document.execCommand("SelectAll", false);
+
+ runAfterLayoutAndPaint(t.step_func(() => {
+ document.vlinkColor = "#ff0000";
+ requestAnimationFrame(t.step_func_done());
+ }));
+ });
+}, "Don't crash.");
+</script>
+<svg id="svg1">
+ <text>Text2</text>
+</svg>
+<svg>
+ <text id="text1">Text</text>
+</svg>
+<svg>
+ <filter id="f">
+ <feImage xlink:href="#svg1"/>
+ </filter>
+</svg>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698