Bug 537623 - Part 2. reftests for filter/clip-path/mask painting in an use element.
☠☠ backed out by d7647a1c41fe ☠ ☠
authorcku <cku@mozilla.com>
Tue, 17 Jan 2017 01:46:22 +0800
changeset 377048 f69bd7779bc9fbf3d4e38c8025eee0041da4bca1
parent 377047 e32814fc5ab6fdb9e723b8109aa8f398b1c883f6
child 377049 fcb3c9a6426e9a54a28abd5acf4448bbfac5cf0c
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs537623
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 537623 - Part 2. reftests for filter/clip-path/mask painting in an use element. MozReview-Commit-ID: 6fFEhKHIK0U
layout/reftests/svg/clip-use-element-01.svg
layout/reftests/svg/clip-use-element-02.svg
layout/reftests/svg/filter-use-element-01.svg
layout/reftests/svg/mask-use-element-01.svg
layout/reftests/svg/reftest.list
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