Bug 1702675 - Demote nsTextFrame selection state assert to NS_ASSERTION r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D111637
This commit is contained in:
Miko Mynttinen 2021-04-13 17:11:28 +00:00
Родитель 759872688d
Коммит 03cca3bf64
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -7442,8 +7442,9 @@ bool nsTextFrame::IsFrameSelected() const {
// Assert that the selection caching works.
const bool isReallySelected =
GetContent()->IsSelected(GetContentOffset(), GetContentEnd());
MOZ_ASSERT((mIsSelected == nsTextFrame::SelectionState::Selected) ==
isReallySelected);
NS_ASSERTION((mIsSelected == nsTextFrame::SelectionState::Selected) ==
isReallySelected,
"Should have called InvalidateSelectionState()");
#endif
}