Null check the page content frame, just in case. b=294836 r+sr=bzbarsky

This commit is contained in:
mats.palmgren%bredband.net 2006-07-20 09:41:01 +00:00
parent 573e6523ef
commit ee6a0e63b0

View File

@ -2627,6 +2627,9 @@ FindCanvasBackground(nsIFrame* aForFrame,
topFrame = firstChild->GetFirstChild(nsnull);
NS_ASSERTION(topFrame,
"nsPageContentFrame is missing a normal flow child");
if (!topFrame) {
return PR_FALSE;
}
NS_ASSERTION(topFrame->GetContent(),
"nsPageContentFrame child without content");
result = topFrame->GetStyleBackground();