diff options
author | Jeremy Andrews <athenian200@outlook.com> | 2021-12-05 18:34:12 -0600 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-19 21:48:36 +0000 |
commit | 7aa445162e2e1ab5f8d172316fd1dd3b28b47bb5 (patch) | |
tree | e7b42f8b12c8da989980ac0974009ca4ab183b76 /dom/xbl/nsBindingManager.cpp | |
parent | 643e298a550d5b3eeed7ad4bbedc1551be76c6b7 (diff) | |
download | uxp-7aa445162e2e1ab5f8d172316fd1dd3b28b47bb5.tar.gz |
Issue #1593 - Part 5: Fix error that messes with event state detection.
Iterator changes between 42 and 52 were a bit confusing.
Diffstat (limited to 'dom/xbl/nsBindingManager.cpp')
-rw-r--r-- | dom/xbl/nsBindingManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/xbl/nsBindingManager.cpp b/dom/xbl/nsBindingManager.cpp index 6fb29ca871..8f18f112af 100644 --- a/dom/xbl/nsBindingManager.cpp +++ b/dom/xbl/nsBindingManager.cpp @@ -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(); } |