mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 17:03:07 +09:00
Issue #1592 - Part 10: Slot elements should restyle their parent on attribute changes
This commit is contained in:
parent
9a071f3b7a
commit
bc12e05bd3
1 changed files with 7 additions and 0 deletions
|
|
@ -110,6 +110,13 @@ HTMLSlotElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
|
|||
}
|
||||
}
|
||||
|
||||
if (nsIContent* parent = GetParent()) {
|
||||
if (parent->IsElement()) {
|
||||
nsLayoutUtils::PostRestyleEvent(
|
||||
parent->AsElement(), eRestyle_Subtree, nsChangeHint(0));
|
||||
}
|
||||
}
|
||||
|
||||
return nsGenericHTMLElement::AfterSetAttr(aNameSpaceID, aName, aValue,
|
||||
aOldValue, aNotify);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue