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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/resources/color-profile-image-foreign-object.svg

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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: third_party/WebKit/LayoutTests/fast/images/resources/color-profile-image-foreign-object.svg
diff --git a/third_party/WebKit/LayoutTests/fast/images/resources/color-profile-image-foreign-object.svg b/third_party/WebKit/LayoutTests/fast/images/resources/color-profile-image-foreign-object.svg
new file mode 100644
index 0000000000000000000000000000000000000000..d27d1c81ae18a17862d91d570717534932e8b6b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/images/resources/color-profile-image-foreign-object.svg
@@ -0,0 +1,21 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 480 360">
+ <!-- frame the view port -->
+ <rect id="test-frame" x="1" y="1" width="478" height="358" fill="black"/>
+ <!-- draw a group within the view port -->
+ <g shape-rendering="geometricPrecision">
+ <!-- define a circular clipping path id #circle -->
+ <defs>
+ <clipPath id="circle" clipPathUnits="userSpaceOnUse">
+ <circle cx="240" cy="180" r="160"/>
+ </clipPath>
+ </defs>
+ <!-- sub-group is a <foreignObject> (an <iframe> with a color profiled image) clipped to id #circle -->
+ <g clip-path="url(#circle)">
+ <foreignObject x="10" y="10" width="450" height="340">
+ <body xmlns="http://www.w3.org/1999/xhtml">
+ <iframe src="red-at-12-oclock-with-color-profile.png" style="width:400px; height:400px"></iframe>
+ </body>
+ </foreignObject>
+ </g>
+ </g>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698