Bug 1791759 - remove unused ContentRelevancyReason::DescendantOfTopLayerElement r=emilio

A small cleanup, follow up from D159693.

Differential Revision: https://phabricator.services.mozilla.com/D169212
This commit is contained in:
Alexander Surkov 2023-02-09 01:18:04 +00:00
Родитель b0c0bff90b
Коммит f0b145fdd2
2 изменённых файлов: 0 добавлений и 10 удалений

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

@ -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,

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

@ -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) {