diff options
author | Brian Smith <brian@dbsoft.org> | 2022-08-25 21:59:08 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2022-08-25 21:59:08 -0500 |
commit | d6f18548a664b82489daeebf18fd3051f3edc8ac (patch) | |
tree | 865369a2ddc822f92758edfdb7647348f490b174 /dom/events | |
parent | bbc3e455b064320170be03996a87a493f3c18106 (diff) | |
download | uxp-d6f18548a664b82489daeebf18fd3051f3edc8ac.tar.gz |
Issue #1990 - Part 5 - Common up the skippability implementations that are basically copy/pastes of the DOMEventTargetHelper one.
Mozilla Bug Bug 1333540. Skipped the renamed of various functions, but otherwise a direct port.
Diffstat (limited to 'dom/events')
-rw-r--r-- | dom/events/DOMEventTargetHelper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/events/DOMEventTargetHelper.cpp b/dom/events/DOMEventTargetHelper.cpp index ef5b29fa5c..458d85215f 100644 --- a/dom/events/DOMEventTargetHelper.cpp +++ b/dom/events/DOMEventTargetHelper.cpp @@ -52,11 +52,12 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(DOMEventTargetHelper) NS_IMPL_CYCLE_COLLECTION_UNLINK_END NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_BEGIN(DOMEventTargetHelper) - if (tmp->IsBlack() || tmp->IsCertainlyAliveForCC()) { + bool isBlack = tmp->IsBlack(); + if (isBlack || tmp->IsCertainlyAliveForCC()) { if (tmp->mListenerManager) { tmp->mListenerManager->MarkForCC(); } - if (!tmp->IsBlack() && tmp->PreservingWrapper()) { + if (!isBlack && tmp->PreservingWrapper()) { // This marks the wrapper black. tmp->GetWrapper(); } |