Bug 1370508 - Enable stylo on generic XML documents. r=heycam

MozReview-Commit-ID: 4XQ9RPQ7oa1

--HG--
extra : rebase_source : f5ffeaa615076035215f5ac1b9b39aa5cb15d618
This commit is contained in:
Xidorn Quan 2017-08-09 19:57:33 +10:00
parent 092be74b6e
commit a0b8a2c68d
5 changed files with 10 additions and 4 deletions

View File

@ -13224,8 +13224,7 @@ nsIDocument::UpdateStyleBackendType()
mStyleBackendType = StyleBackendType::Servo;
} else if (!mDocumentContainer) {
NS_WARNING("stylo: No docshell yet, assuming Gecko style system");
} else if ((IsHTMLOrXHTML() || IsSVGDocument()) &&
IsContentDocument()) {
} else if (!IsXULDocument() && IsContentDocument()) {
// Disable stylo for about: pages other than about:blank, since
// they tend to use unsupported selectors like XUL tree pseudos.
bool isAbout = false;

View File

@ -314,3 +314,7 @@ fuzzy(255,2808) css-multicol-1/multicol-rule-large-001.xht
fails-if(!styloVsGecko) css-multicol-1/multicol-fill-auto-block-children-001.xht
fails-if(!styloVsGecko) css-multicol-1/multicol-fill-auto-block-children-002.xht
fails-if(!styloVsGecko) css-multicol-1/multicol-span-all-block-sibling-003.xht
#### CSS Namespaces 3 ##############################################
fails-if(stylo||styloVsGecko) css-namespaces-3/syntax-013.xml

View File

@ -205,7 +205,7 @@ fails-if(!styloVsGecko) == css-multicol-1/multicol-zero-height-001.xht css-multi
== css-namespaces-3/syntax-010.xml css-namespaces-3/reftest/ref-lime-3.xml
== css-namespaces-3/syntax-011.xml css-namespaces-3/reftest/ref-lime-6.xml
== css-namespaces-3/syntax-012.xml css-namespaces-3/reftest/ref-lime-3.xml
== css-namespaces-3/syntax-013.xml css-namespaces-3/reftest/ref-lime-5.xml
fails-if(stylo||styloVsGecko) == css-namespaces-3/syntax-013.xml css-namespaces-3/reftest/ref-lime-5.xml # bug 1388911
== css-namespaces-3/syntax-014.xml css-namespaces-3/reftest/ref-lime-3.xml
== css-namespaces-3/syntax-015.xml css-namespaces-3/reftest/ref-lime-1.xml
fails-if(!styloVsGecko) == css-values-3/attr-color-invalid-cast.html css-values-3/reference/200-200-green.html

View File

@ -1,6 +1,6 @@
load 131008-1.xul
load 137216-1.xul
load 140218-1.xml
asserts-if(stylo,3) load 140218-1.xml
load 151826-1.xul
load 168724-1.xul
load 189814-1.xul

View File

@ -0,0 +1,3 @@
[syntax-013.xml]
type: reftest
expected: FAIL