if (!canBeActive())
return false;
ShadowRoot* shadowRoot = containingShadowRoot();
- ASSERT(shadowRoot);
+ if (!shadowRoot)
+ return false;
if (!hasTagName(shadowTag) || shadowRoot->descendantShadowElementCount() <= 1)
return true;
if (name == reset_style_inheritanceAttr) {
if (!inDocument() || !isActive())
return;
- containingShadowRoot()->host()->setNeedsStyleRecalc();
+ containingShadowRoot()->host()->setNeedsStyleRecalc(SubtreeStyleChange);
} else
HTMLElement::parseAttribute(name, value);
}