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

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: 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
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..d920676602d2c41e3d53df2b3427155ef6780e52
--- /dev/null
+++ b/LayoutTests/css3/filters/filter-effect-removed.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+ <svg width="0" xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
Stephen White 2015/06/26 17:57:38 Nit: width="0" twice here
ajuma 2015/06/26 19:09:26 Done.
+ <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";
+ });
+ });
+ }
+</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') | public/platform/WebFilterOperations.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698