mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1529900 - Columnpicker restore column order doesn't work anymore, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D22094 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d9bacb3214
commit
9783bee1be
@ -55,6 +55,13 @@ nsIContent* nsTreeUtils::GetImmediateChild(nsIContent* aContainer,
|
||||
if (child->IsXULElement(aTag)) {
|
||||
return child;
|
||||
}
|
||||
// <slot> is in the flattened tree, but <tree> code is used to work with
|
||||
// <xbl:children> which is not, so recurse in <slot> here.
|
||||
if (child->IsHTMLElement(nsGkAtoms::slot)) {
|
||||
if (nsIContent* c = GetImmediateChild(child, aTag)) {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user