зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
12dbe4ba1a
Коммит
20d8a2354e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче