mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
Issue #1587 - Part 8: Remove controller follow/unfollow
Since it didn't end up being in the final spec after all.
This commit is contained in:
parent
b988c351ff
commit
8ac3ccd67a
6 changed files with 1 additions and 124 deletions
|
|
@ -68,8 +68,6 @@ AbortSignal::Abort()
|
|||
init.mBubbles = false;
|
||||
init.mCancelable = false;
|
||||
|
||||
// TODO which kind of event should we dispatch here?
|
||||
|
||||
RefPtr<Event> event =
|
||||
Event::Constructor(this, NS_LITERAL_STRING("abort"), init);
|
||||
event->SetTrusted(true);
|
||||
|
|
@ -94,27 +92,6 @@ AbortSignal::RemoveFollower(AbortSignal::Follower* aFollower)
|
|||
mFollowers.RemoveElement(aFollower);
|
||||
}
|
||||
|
||||
bool
|
||||
AbortSignal::CanAcceptFollower(AbortSignal::Follower* aFollower) const
|
||||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(aFollower);
|
||||
|
||||
if (!mController) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aFollower == mController) {
|
||||
return false;
|
||||
}
|
||||
|
||||
AbortSignal* following = mController->Following();
|
||||
if (!following) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return following->CanAcceptFollower(aFollower);
|
||||
}
|
||||
|
||||
// AbortSignal::Follower
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -128,10 +105,6 @@ AbortSignal::Follower::Follow(AbortSignal* aSignal)
|
|||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(aSignal);
|
||||
|
||||
if (!aSignal->CanAcceptFollower(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Unfollow();
|
||||
|
||||
mFollowingSignal = aSignal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue