Bug 537623 - Part 2. reftests for filter/clip-path/mask painting in an use element.
MozReview-Commit-ID: 6fFEhKHIK0U
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/clip-use-element-01.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <clipPath id="myClipPath">
+ <rect x="100" y="100" width="100" height="100"/>
+ </clipPath>
+ <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+ </defs>
+ <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+ <use xlink:href="#abc"
+ x="100" y="100" clip-path="url(#myClipPath)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/clip-use-element-02.svg
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <rect x="100" y="100" width="100" height="100" fill="red" id="def"/>
+ <clipPath id="myClipPath">
+ <use xlink:href="#def"/>
+ </clipPath>
+ <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+ </defs>
+ <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+ <use xlink:href="#abc"
+ x="100" y="100" clip-path="url(#myClipPath)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/filter-use-element-01.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <filter id="myFilter" filterUnits="userSpaceOnUse" x="100" y="100" width="100" height="100">
+ <feGaussianBlur stdDeviation="20 10"/>
+ </filter>
+ <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+ </defs>
+ <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+ <use xlink:href="#abc" x="100" y="100" filter="url(#myFilter)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-use-element-01.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <mask id="myMask">
+ <rect x="100" y="100" width="100" height="100" fill="white"/>
+ </mask>
+ <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+ </defs>
+ <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+ <use xlink:href="#abc"
+ x="100" y="100" mask="url(#myMask)"/>
+</svg>
\ No newline at end of file
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -464,8 +464,13 @@ default-preferences
== paint-on-maskLayer-1a.html paint-on-maskLayer-1-ref.html
== paint-on-maskLayer-1b.html paint-on-maskLayer-1-ref.html
== paint-on-maskLayer-1c.html paint-on-maskLayer-1-ref.html
fuzzy(71,817) == filter-on-continuation-box-01.html filter-on-continuation-box-ref.html
== mask-contains-inner-svg-01.svg pass.svg
== mask-contains-inner-svg-02.svg pass.svg
+
+== mask-use-element-01.svg pass.svg
+== clip-use-element-01.svg pass.svg
+== clip-use-element-02.svg pass.svg
+== filter-use-element-01.svg pass.svg