From 60bed74af331b8d044884cb58f89aa6d2c0430bc Mon Sep 17 00:00:00 2001 From: "longsonr%gmail.com" Date: Thu, 15 Jun 2006 11:13:41 +0000 Subject: [PATCH] Bug 327705 - remove ASSERTION: can't get bounding box for element without frame. r=tor,sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@199965 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/svg/content/src/nsSVGGraphicElement.cpp | 2 -- mozilla/content/svg/content/src/nsSVGSVGElement.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/mozilla/content/svg/content/src/nsSVGGraphicElement.cpp b/mozilla/content/svg/content/src/nsSVGGraphicElement.cpp index 2366e1f48a9..c26a263544e 100644 --- a/mozilla/content/svg/content/src/nsSVGGraphicElement.cpp +++ b/mozilla/content/svg/content/src/nsSVGGraphicElement.cpp @@ -93,8 +93,6 @@ NS_IMETHODIMP nsSVGGraphicElement::GetBBox(nsIDOMSVGRect **_retval) nsIFrame* frame = GetPrimaryFrame(Flush_Layout); - NS_ASSERTION(frame, "can't get bounding box for element without frame"); - if (frame) { nsISVGChildFrame* svgframe; CallQueryInterface(frame, &svgframe); diff --git a/mozilla/content/svg/content/src/nsSVGSVGElement.cpp b/mozilla/content/svg/content/src/nsSVGSVGElement.cpp index 84c2d31080d..947938c0fa5 100644 --- a/mozilla/content/svg/content/src/nsSVGSVGElement.cpp +++ b/mozilla/content/svg/content/src/nsSVGSVGElement.cpp @@ -693,8 +693,6 @@ nsSVGSVGElement::GetBBox(nsIDOMSVGRect **_retval) nsIFrame* frame = GetPrimaryFrame(Flush_Layout); - NS_ASSERTION(frame, "can't get bounding box for element without frame"); - if (frame) { nsISVGChildFrame* svgframe; frame->QueryInterface(NS_GET_IID(nsISVGChildFrame),(void**)&svgframe);