Bug 1449118 - Force SVGs to load when running the twisty reftest. r=dholbert

MozReview-Commit-ID: HxU0B0Bxwgp

--HG--
extra : rebase_source : dabe4a34d31de13b7d2d42d054463ccef3020913
This commit is contained in:
Tim Nguyen 2018-03-28 21:38:31 +00:00
Родитель d6673c9aad
Коммит 9458999c51
4 изменённых файлов: 51 добавлений и 1 удалений

Просмотреть файл

@ -75,4 +75,6 @@ skip == treecell-image-svg-1a.xul treecell-image-svg-1-ref.xul # bug 1218954
skip == treecell-image-svg-1b.xul treecell-image-svg-1-ref.xul # bug 1218954
== treechildren-padding-percent-1.xul treechildren-padding-percent-1-ref.xul
test-pref(svg.context-properties.content.enabled,true) == treetwisty-svg-context-paint-1.xul treetwisty-svg-context-paint-1-ref.xul
!= treetwisty-svg-context-paint-1-not-ref.xul treetwisty-svg-context-paint-1-ref.xul
test-pref(svg.context-properties.content.enabled,true) == treetwisty-svg-context-paint-1.xul treetwisty-svg-context-paint-1-ref.xul

Просмотреть файл

@ -0,0 +1,37 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<html:style>
treechildren::-moz-tree-twisty {
-moz-appearance: none !important;
-moz-context-properties: none !important;
list-style: none !important;
}
</html:style>
<tree seltype="single" flex="1">
<treecols>
<treecol flex="1" primary="true"/>
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell label="I am a treecell"></treecell>
</treerow>
</treeitem>
<treeitem container="true" open="true">
<treerow>
<treecell label="Folder"></treecell>
</treerow>
<treechildren>
<treeitem>
<treerow>
<treecell label="I am a treecell"></treecell>
</treerow>
</treeitem>
</treechildren>
</treeitem>
</treechildren>
</tree>
</window>

Просмотреть файл

@ -3,7 +3,12 @@
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<image src="treetwisty-no-context-paint.svg" id="preload-image"/>
<html:style>
#preload-image {
visibility: collapse;
}
treechildren::-moz-tree-twisty {
-moz-appearance: none !important;
-moz-context-properties: none !important;

Просмотреть файл

@ -3,7 +3,13 @@
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<image src="treetwisty-context-paint.svg" id="preload-image"/>
<html:style>
#preload-image {
visibility: collapse;
}
#preload-image,
treechildren::-moz-tree-twisty {
-moz-appearance: none !important;
-moz-context-properties: fill, fill-opacity, stroke, stroke-opacity !important;