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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-frameless-document.html

Issue 1903613002: Skip canvas filter construction in frameless documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment Created 4 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/LayoutTests/fast/canvas/canvas-filter-frameless-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-frameless-document.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-frameless-document.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-frameless-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..97c0ab47639d0ff810b6996461834fefb79d5071
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-frameless-document.html
@@ -0,0 +1,17 @@
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var canvas1 = document.createElement('canvas');
+var ctx1 = canvas1.getContext('2d');
+var htmlDoc = document.implementation.createHTMLDocument('', '', null);
+htmlDoc.adoptNode(canvas1);
+var canvas2 = htmlDoc.createElement('canvas');
+var ctx2 = canvas2.getContext('2d');
+
+ctx1.filter = 'drop-shadow(1em 0.5em black)';
+ctx2.filter = 'drop-shadow(1em 0.5em black)';
+ctx1.fillRect(25, 25, 50, 40);
+ctx2.fillRect(25, 25, 50, 40);
+</script>
+This test passes if it doesn't crash.
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-frameless-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698