Bug 1529698 - Part 1: Make LayerState enum class r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D30837
This commit is contained in:
@@ -200,14 +200,14 @@ class nsDisplayCanvas final : public nsDisplayItem {
|
||||
const ContainerLayerParameters& aParameters) override {
|
||||
if (HTMLCanvasElement::FromNode(mFrame->GetContent())
|
||||
->ShouldForceInactiveLayer(aManager))
|
||||
return LAYER_INACTIVE;
|
||||
return LayerState::LAYER_INACTIVE;
|
||||
|
||||
// If compositing is cheap, just do that
|
||||
if (aManager->IsCompositingCheap() ||
|
||||
ActiveLayerTracker::IsContentActive(mFrame))
|
||||
return mozilla::LAYER_ACTIVE;
|
||||
return mozilla::LayerState::LAYER_ACTIVE;
|
||||
|
||||
return LAYER_INACTIVE;
|
||||
return LayerState::LAYER_INACTIVE;
|
||||
}
|
||||
|
||||
// FirstContentfulPaint is supposed to ignore "white" canvases. We use
|
||||
|
||||
Reference in New Issue
Block a user