зеркало из https://github.com/mozilla/gecko-dev.git
Null-check the frame before trying to work with it. Bug 315483, patch by jpl24
<jlurz24@gmail.com>, r+sr=bzbarsky
This commit is contained in:
Родитель
4a9b91c73b
Коммит
3ff908ecf1
|
@ -84,8 +84,8 @@ inline nscoord CalcSideFor(const nsIFrame* aFrame, const nsStyleCoord& aCoord,
|
|||
case eStyleUnit_Percent:
|
||||
{
|
||||
nscoord baseWidth = 0;
|
||||
nsIFrame* frame =
|
||||
nsHTMLReflowState::GetContainingBlockFor(aFrame);
|
||||
nsIFrame* frame = aFrame ?
|
||||
nsHTMLReflowState::GetContainingBlockFor(aFrame) : nsnull;
|
||||
if (frame) {
|
||||
baseWidth = frame->GetSize().width;
|
||||
// subtract border of containing block
|
||||
|
|
Загрузка…
Ссылка в новой задаче