зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 8ce27eeef766 (bug 1402094) for bustage on Android: dom/base/nsDocument.cpp:13613: 'bool ShouldUseGeckoBackend(nsIURI*)' defined but not used. r=backout
This commit is contained in:
Родитель
b245e01efe
Коммит
bb227d88e0
|
@ -13608,27 +13608,6 @@ nsIDocument::ReportHasScrollLinkedEffect()
|
|||
"ScrollLinkedEffectFound2");
|
||||
}
|
||||
|
||||
// URL-based blacklist for stylo.
|
||||
static bool
|
||||
ShouldUseGeckoBackend(nsIURI* aDocumentURI)
|
||||
{
|
||||
if (!aDocumentURI) {
|
||||
return false;
|
||||
}
|
||||
bool isScheme = false;
|
||||
if (NS_SUCCEEDED(aDocumentURI->SchemeIs("about", &isScheme))) {
|
||||
nsAutoCString path;
|
||||
aDocumentURI->GetFilePath(path);
|
||||
// about:reader requires support of :scope pseudo-class so we have
|
||||
// to use Gecko backend for now. See bug 1402094.
|
||||
// This should be fixed by bug 1204818.
|
||||
if (path.EqualsLiteral("reader")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
nsIDocument::UpdateStyleBackendType()
|
||||
{
|
||||
|
@ -13647,7 +13626,7 @@ nsIDocument::UpdateStyleBackendType()
|
|||
// Note that, since tests can have XUL support, we still need to
|
||||
// explicitly exclude XUL documents here.
|
||||
if (!nsContentUtils::IsSystemPrincipal(NodePrincipal()) &&
|
||||
!IsXULDocument() && !ShouldUseGeckoBackend(mDocumentURI)) {
|
||||
!IsXULDocument()) {
|
||||
mStyleBackendType = StyleBackendType::Servo;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче