mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839927 - Update scoped style content flags correctly when SVG <style scoped=""> elements are involved. r=bz
This commit is contained in:
parent
d966ecc5da
commit
3d58763a27
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user