mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
Issue #1592 - Part 10: Slot elements should restyle their parent on attribute changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user