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

Unified Diff: LayoutTests/svg/filters/feComponentTransfer-subregion.svg

Issue 112053007: Compute source/destination rectangles in FEComponentTransfer::applySkia (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test touched up. Created 7 years 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/svg/filters/feComponentTransfer-subregion-expected.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/filters/feComponentTransfer-subregion.svg
diff --git a/LayoutTests/svg/filters/feComponentTransfer-subregion.svg b/LayoutTests/svg/filters/feComponentTransfer-subregion.svg
new file mode 100644
index 0000000000000000000000000000000000000000..60724e72bd33dfd7e14babb913dea4a6570ba87c
--- /dev/null
+++ b/LayoutTests/svg/filters/feComponentTransfer-subregion.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <filter id="f1" filterUnits="userSpaceOnUse" x="0" y="0" width="200" height="200">
+ <feFlood flood-color="#ff0000" result="red" x="50" y="50" width="100" height="100"/>
+ <feImage xlink:href="#rect"/>
+ <feComponentTransfer x="50" y="50" width="100" height="100">
+ <feFuncG type="linear" slope="0" intercept="1"/>
+ </feComponentTransfer>
+ <feComposite operator="over" in2="red"/>
+ </filter>
+
+ <rect id="rect" x="50" y="50" width="100" height="100" fill="#000000"/>
+ </defs>
+ <!-- There should be a lime rectangle below, and no red. -->
+ <g filter="url(#f1)"/>
+</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/filters/feComponentTransfer-subregion-expected.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698