mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
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:
parent
9bf01d6708
commit
88e4cd51ab
1 changed files with 2 additions and 3 deletions
|
|
@ -740,8 +740,8 @@ GetContentSetRuleProcessors(nsTHashtable<nsRefPtrHashKey<nsIContent>>* aContentS
|
||||||
// for its immediate binding, and one more for each binding in the
|
// for its immediate binding, and one more for each binding in the
|
||||||
// inheritance chain. Additionally, a bound content may host multiple
|
// inheritance chain. Additionally, a bound content may host multiple
|
||||||
// shadow roots, each with its own rule processor.
|
// shadow roots, each with its own rule processor.
|
||||||
nsXBLBinding *binding = boundContent->GetXBLBinding();
|
for (nsXBLBinding *binding = boundContent->GetXBLBinding(); binding;
|
||||||
if (binding) {
|
binding = binding->GetBaseBinding()) {
|
||||||
nsIStyleRuleProcessor* ruleProc =
|
nsIStyleRuleProcessor* ruleProc =
|
||||||
binding->PrototypeBinding()->GetRuleProcessor();
|
binding->PrototypeBinding()->GetRuleProcessor();
|
||||||
if (ruleProc) {
|
if (ruleProc) {
|
||||||
|
|
@ -751,7 +751,6 @@ GetContentSetRuleProcessors(nsTHashtable<nsRefPtrHashKey<nsIContent>>* aContentS
|
||||||
set->PutEntry(ruleProc);
|
set->PutEntry(ruleProc);
|
||||||
}
|
}
|
||||||
|
|
||||||
binding = binding->GetBaseBinding();
|
|
||||||
if (shadowRoot) {
|
if (shadowRoot) {
|
||||||
binding = shadowRoot->GetAssociatedBinding();
|
binding = shadowRoot->GetAssociatedBinding();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue