mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 555321: In nsSVGSVGElement::InvalidateTransformNotifyFrame, don't warn about 'wrong frame type' if we don't have a frame. r=jwatt
This commit is contained in:
parent
d527d95aca
commit
0421bbf64e
@ -1091,15 +1091,15 @@ nsSVGSVGElement::WillBeOutermostSVG(nsIContent* aParent,
|
||||
void
|
||||
nsSVGSVGElement::InvalidateTransformNotifyFrame()
|
||||
{
|
||||
nsISVGSVGFrame* svgframe = do_QueryFrame(GetPrimaryFrame());
|
||||
nsIFrame* frame = GetPrimaryFrame();
|
||||
nsISVGSVGFrame* svgframe = do_QueryFrame(frame);
|
||||
if (svgframe) {
|
||||
svgframe->NotifyViewportChange();
|
||||
}
|
||||
#ifdef DEBUG
|
||||
else {
|
||||
// XXX we get here during nsSVGOuterSVGFrame::Init() since that
|
||||
// function is called before the presshell association between us
|
||||
// and our frame is established.
|
||||
else if (frame) {
|
||||
// Uh oh -- we have a primary frame, but it failed the do_QueryFrame to the
|
||||
// expected type!
|
||||
NS_WARNING("wrong frame type");
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user