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

Unified Diff: LayoutTests/css3/filters/filter-effect-removed.html

Issue 1214673005: Check for empty WebFilterOperations in FilterPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: isEmpty instead of size Created 5 years, 6 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 | LayoutTests/css3/filters/filter-effect-removed-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/filters/filter-effect-removed.html
diff --git a/LayoutTests/css3/filters/filter-effect-removed.html b/LayoutTests/css3/filters/filter-effect-removed.html
new file mode 100644
index 0000000000000000000000000000000000000000..4a8a3439937d6ef752a04f4e89fea1ec284e3c0c
--- /dev/null
+++ b/LayoutTests/css3/filters/filter-effect-removed.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+ <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
+ <defs id="svgDefs" style="display:none">
+ <filter id="blurY" color-interpolation-filters="sRGB">
+ <feGaussianBlur id="blurEffect" stdDeviation="0 5">
+ </feGaussianBlur>
+ </filter>
+ </defs>
+ </svg>
+
+<script>
+ onload = function() {
+ // Render one frame with the blur effect, then remove it.
+ window.requestAnimationFrame(function() {
+ window.requestAnimationFrame(function() {
+ var filterElement = document.getElementById("blurY");
+ var filterEffectElement = document.getElementById("blurEffect");
+ filterElement.removeChild(filterEffectElement);
+
+ // Ensure we draw a frame.
+ document.getElementById("other").style.backgroundColor = "blue";
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ });
+
+ }
+
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+</script>
+
+<img src="resources/reference.png" style="-webkit-filter: url(#blurY); filter: url(#blurY);">
+
+<div id="other" style="width: 10px; height: 10px"></div>
« no previous file with comments | « no previous file | LayoutTests/css3/filters/filter-effect-removed-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698