Bug 1414853 - Ensure LayerManager's backend type is LAYERS_WR in CanUseAdvancedLayer since BasicCompositor might be used for remote extension process; r?sotaro
MozReview-Commit-ID: KzAUXKWJf58
--- a/layout/painting/nsDisplayList.cpp
+++ b/layout/painting/nsDisplayList.cpp
@@ -3113,17 +3113,17 @@ nsDisplayItem::ShouldUseAdvancedLayer(La
{
return CanUseAdvancedLayer(aManager) ? aFunc() : false;
}
bool
nsDisplayItem::CanUseAdvancedLayer(LayerManager* aManager) const
{
if (!gfxPrefs::LayersAdvancedBasicLayerEnabled() &&
- aManager && aManager->GetBackendType() == layers::LayersBackend::LAYERS_BASIC) {
+ aManager && aManager->GetBackendType() != layers::LayersBackend::LAYERS_WR) {
return false;
}
return true;
}
static const DisplayItemClipChain*
FindCommonAncestorClipForIntersection(const DisplayItemClipChain* aOne,