mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Null check the page content frame, just in case. b=294836 r+sr=bzbarsky
This commit is contained in:
parent
573e6523ef
commit
ee6a0e63b0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user