mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 655877 - Part 38: Ignore the non-SVG frames when propagating SVG changes through a tree. r=longsonr
This commit is contained in:
parent
4123ef22e8
commit
d2c8e91b44
@ -1083,10 +1083,13 @@ nsSVGUtils::NotifyChildrenOfSVGChange(nsIFrame *aFrame, uint32_t aFlags)
|
||||
if (SVGFrame) {
|
||||
SVGFrame->NotifySVGChanged(aFlags);
|
||||
} else {
|
||||
NS_ASSERTION(kid->IsFrameOfType(nsIFrame::eSVG), "SVG frame expected");
|
||||
NS_ASSERTION(kid->IsFrameOfType(nsIFrame::eSVG) || kid->IsSVGText(),
|
||||
"SVG frame expected");
|
||||
// recurse into the children of container frames e.g. <clipPath>, <mask>
|
||||
// in case they have child frames with transformation matrices
|
||||
NotifyChildrenOfSVGChange(kid, aFlags);
|
||||
if (kid->IsFrameOfType(nsIFrame::eSVG)) {
|
||||
NotifyChildrenOfSVGChange(kid, aFlags);
|
||||
}
|
||||
}
|
||||
kid = kid->GetNextSibling();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user