mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Make DidReflowChildren() deal with a null first frame. b=372483 r+sr=rbs
This commit is contained in:
parent
70d4cd212d
commit
15d5058747
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user