diff --git a/content/base/src/nsStyleLinkElement.cpp b/content/base/src/nsStyleLinkElement.cpp index 4567571ea1a..a52b7b602cf 100644 --- a/content/base/src/nsStyleLinkElement.cpp +++ b/content/base/src/nsStyleLinkElement.cpp @@ -213,7 +213,8 @@ IsScopedStyleElement(nsIContent* aContent) // This is quicker than, say, QIing aContent to nsStyleLinkElement // and then calling its virtual GetStyleSheetInfo method to find out // if it is scoped. - return aContent->IsHTML(nsGkAtoms::style) && + return (aContent->IsHTML(nsGkAtoms::style) || + aContent->IsSVG(nsGkAtoms::style)) && aContent->HasAttr(kNameSpaceID_None, nsGkAtoms::scoped); }