Bug 839927 - Update scoped style content flags correctly when SVG <style scoped=""> elements are involved. r=bz

This commit is contained in:
Cameron McCormack 2013-02-12 15:48:22 +11:00
parent d966ecc5da
commit 3d58763a27

View File

@ -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);
}