diff --git a/dom/html/HTMLSlotElement.cpp b/dom/html/HTMLSlotElement.cpp index 4d4b137dd5..9286ff9591 100644 --- a/dom/html/HTMLSlotElement.cpp +++ b/dom/html/HTMLSlotElement.cpp @@ -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); }