Bug 620275 - Remove an unnecessary null-check. r=bz

This commit is contained in:
timeless@bemail.org 2014-10-24 17:08:00 +02:00
parent a275d1fe0b
commit 46ab9cf831

View File

@ -100,10 +100,8 @@ nsSubDocumentFrame::Init(nsIContent* aContent,
nsIFrame* aPrevInFlow)
{
// determine if we are a <frame> or <iframe>
if (aContent) {
nsCOMPtr<nsIDOMHTMLFrameElement> frameElem = do_QueryInterface(aContent);
mIsInline = frameElem ? false : true;
}
nsCOMPtr<nsIDOMHTMLFrameElement> frameElem = do_QueryInterface(aContent);
mIsInline = frameElem ? false : true;
nsLeafFrame::Init(aContent, aParent, aPrevInFlow);