Bug 780502 - Remove unsound assertion; r=ehsan

This commit is contained in:
Ms2ger 2012-08-09 09:20:11 +02:00
parent 47bb1e7649
commit de02017227

View File

@ -642,7 +642,6 @@ nsHTMLCSSUtils::GetComputedStyle(dom::Element* aElement)
MOZ_ASSERT(aElement);
nsIDocument* doc = aElement->GetCurrentDoc();
NS_ASSERTION(doc, "Trying to compute style of detached element");
NS_ENSURE_TRUE(doc, nullptr);
nsIPresShell* presShell = doc->GetShell();