diff --git a/layout/base/LayoutConstants.h b/layout/base/LayoutConstants.h index f441159fe3f2..ac9a8b029dc6 100644 --- a/layout/base/LayoutConstants.h +++ b/layout/base/LayoutConstants.h @@ -96,9 +96,6 @@ enum class ContentRelevancyReason { // If the content of this Frame is on screen or nearly on screen. Visible, - // If this Frame's element is a descendant of a top layer element. - DescendantOfTopLayerElement, - // If this Frame's element has focus in its subtree. FocusInSubtree, diff --git a/layout/generic/nsIFrame.cpp b/layout/generic/nsIFrame.cpp index 1217cc84226f..782435796d89 100644 --- a/layout/generic/nsIFrame.cpp +++ b/layout/generic/nsIFrame.cpp @@ -7039,13 +7039,6 @@ void nsIFrame::UpdateIsRelevantContent( HasSelectionInSubtree()); } - if (!oldRelevancy || - aRelevancyToUpdate.contains( - ContentRelevancyReason::DescendantOfTopLayerElement)) { - setRelevancyValue(ContentRelevancyReason::DescendantOfTopLayerElement, - IsDescendantOfTopLayerElement()); - } - bool overallRelevancyChanged = !oldRelevancy || oldRelevancy->isEmpty() != newRelevancy.isEmpty(); if (!oldRelevancy || *oldRelevancy != newRelevancy) {