Make DidReflowChildren() deal with a null first frame. b=372483 r+sr=rbs

This commit is contained in:
mats.palmgren%bredband.net 2007-03-04 16:13:15 +00:00
Родитель 18243cf71f
Коммит 6a91b4f347
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1417,7 +1417,8 @@ void
nsMathMLContainerFrame::DidReflowChildren(nsIFrame* aFirst, nsIFrame* aStop)
{
NS_PRECONDITION(aFirst, "expected a frame");
if (NS_UNLIKELY(!aFirst))
return;
for (nsIFrame* frame = aFirst;
frame != aStop;

Просмотреть файл

@ -311,6 +311,7 @@ protected:
* Call DidReflow() if the NS_FRAME_IN_REFLOW frame bit is set on aFirst and
* all its next siblings up to, but not including, aStop.
* aStop == nsnull meaning all next siblings with the bit set.
* The method does nothing if aFirst == nsnull.
*/
void DidReflowChildren(nsIFrame* aFirst, nsIFrame* aStop = nsnull);
};