Use a more accurate test for first reflow (and one that won't go away soon). b=307979 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2005-12-21 03:32:25 +00:00
Родитель 12dbe4ba1a
Коммит 20d8a2354e
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -992,7 +992,7 @@ nsHTMLFramesetFrame::Reflow(nsPresContext* aPresContext,
nscoord height = (aDesiredSize.height <= aReflowState.availableHeight)
? aDesiredSize.height : aReflowState.availableHeight;
PRBool firstTime = (eReflowReason_Initial == aReflowState.reason);
PRBool firstTime = (GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0;
if (firstTime) {
nsContentUtils::RegisterPrefCallback(kFrameResizePref,
FrameResizePrefCallback, this);