diff --git a/dom/base/nsStyleLinkElement.cpp b/dom/base/nsStyleLinkElement.cpp index 21a4f694a6..7ea7fce40c 100644 --- a/dom/base/nsStyleLinkElement.cpp +++ b/dom/base/nsStyleLinkElement.cpp @@ -304,14 +304,6 @@ nsStyleLinkElement::DoUpdateStyleSheet(nsIDocument* aOldDocument, return NS_OK; } - // Check for a ShadowRoot because link elements are inert in a - // ShadowRoot. - ShadowRoot* containingShadow = thisContent->GetContainingShadow(); - if (thisContent->IsHTMLElement(nsGkAtoms::link) && - (aOldShadowRoot || containingShadow)) { - return NS_OK; - } - // XXXheycam ServoStyleSheets do not support