зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
759872688d
Коммит
03cca3bf64
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче