Backed out changeset 3b21f5d72f54 (bug 1398982) for unexpected passes in reftests a=backout

MozReview-Commit-ID: E4svy69pFIz
This commit is contained in:
Wes Kocher 2017-09-15 15:50:14 -07:00
parent 1aeee1113f
commit ed7085cec0

View File

@ -431,7 +431,7 @@ nsStyleLinkElement::DoUpdateStyleSheet(nsIDocument* aOldDocument,
Element* oldScopeElement = nullptr;
if (mStyleSheet) {
if (mStyleSheet->IsServo()) {
// XXXheycam ServoStyleSheets don't support <style scoped>.
NS_WARNING("stylo: ServoStyleSheets don't support <style scoped>");
} else {
oldScopeElement = mStyleSheet->AsGecko()->GetScopeElement();
}
@ -596,6 +596,7 @@ nsStyleLinkElement::UpdateStyleSheetScopedness(bool aIsNowScoped)
if (mStyleSheet->IsServo()) {
// XXXheycam ServoStyleSheets don't support <style scoped>.
NS_ERROR("stylo: ServoStyleSheets don't support <style scoped>");
return;
}