summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-05-21 19:00:13 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-05-21 19:01:42 +0800
commitac5101015f19e6bb4043231fe399be3d61ae0cb7 (patch)
treee2cf7c88fe264621239bc7dbbacc3d49a4f7a3d2
parent0627dc763966836eee5c182560c744cb5a4233bc (diff)
downloaduxp-ac5101015f19e6bb4043231fe399be3d61ae0cb7.tar.gz
Issue #1592 - Follow-up: Ensure topmost scope marker is cleaned up
-rw-r--r--dom/xbl/nsBindingManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/xbl/nsBindingManager.cpp b/dom/xbl/nsBindingManager.cpp
index b50c86c002..5245821776 100644
--- a/dom/xbl/nsBindingManager.cpp
+++ b/dom/xbl/nsBindingManager.cpp
@@ -717,8 +717,9 @@ nsBindingManager::WalkRules(nsIStyleRuleProcessor::EnumFunc aFunc,
aData->mTreeMatchContext.mIsTopmostScope = (index == 0);
binding->WalkRules(aFunc, aData);
}
- aData->mTreeMatchContext.mForAssignedSlot = false;
+ aData->mTreeMatchContext.mForAssignedSlot = false;
+ aData->mTreeMatchContext.mIsTopmostScope = false;
aData->mTreeMatchContext.mRestrictToSlottedPseudo = false;
}