Issue #1593 - Part 5: Fix error that messes with event state detection.

Iterator changes between 42 and 52 were a bit confusing.
This commit is contained in:
Jeremy Andrews 2021-12-05 18:34:12 -06:00 committed by roytam1
commit 88e4cd51ab

View file

@ -740,8 +740,8 @@ GetContentSetRuleProcessors(nsTHashtable<nsRefPtrHashKey<nsIContent>>* aContentS
// for its immediate binding, and one more for each binding in the
// inheritance chain. Additionally, a bound content may host multiple
// shadow roots, each with its own rule processor.
nsXBLBinding *binding = boundContent->GetXBLBinding();
if (binding) {
for (nsXBLBinding *binding = boundContent->GetXBLBinding(); binding;
binding = binding->GetBaseBinding()) {
nsIStyleRuleProcessor* ruleProc =
binding->PrototypeBinding()->GetRuleProcessor();
if (ruleProc) {
@ -751,7 +751,6 @@ GetContentSetRuleProcessors(nsTHashtable<nsRefPtrHashKey<nsIContent>>* aContentS
set->PutEntry(ruleProc);
}
binding = binding->GetBaseBinding();
if (shadowRoot) {
binding = shadowRoot->GetAssociatedBinding();
}