Bug 1751806. Remove usage of gfxVars::UseWebRender in ActiveLayerTracker which is always true. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D136815
This commit is contained in:
Timothy Nikkel 2022-01-26 11:39:12 +00:00
Родитель 41c33e9917
Коммит d1a54b0a05
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -173,11 +173,6 @@ void LayerActivityTracker::NotifyExpired(LayerActivity* aObject) {
"its frame or its content");
if (f) {
// The pres context might have been detached during the delay -
// that's fine, just skip the paint.
if (f->PresContext()->GetContainerWeak() && !gfxVars::UseWebRender()) {
f->SchedulePaint(nsIFrame::PAINT_DEFAULT, false);
}
f->RemoveStateBits(NS_FRAME_HAS_LAYER_ACTIVITY_PROPERTY);
f->RemoveProperty(LayerActivityProperty());
} else {