зеркало из https://github.com/mozilla/gecko-dev.git
Clear both frame-in-reflow and frame-first-reflow bits on finished didreflow
This commit is contained in:
Родитель
cb30a1fea6
Коммит
66d92c9bb7
|
@ -174,6 +174,7 @@ nsFrame::nsFrame(nsIContent* aContent, nsIFrame* aParent)
|
|||
: mContent(aContent), mContentParent(aParent), mGeometricParent(aParent)
|
||||
{
|
||||
NS_ADDREF(mContent);
|
||||
mState = NS_FRAME_FIRST_REFLOW;
|
||||
}
|
||||
|
||||
nsFrame::~nsFrame()
|
||||
|
@ -998,7 +999,7 @@ nsFrame::DidReflow(nsIPresContext& aPresContext,
|
|||
{
|
||||
NS_FRAME_TRACE_MSG(("nsFrame::DidReflow: aStatus=%d", aStatus));
|
||||
if (NS_FRAME_REFLOW_FINISHED == aStatus) {
|
||||
mState &= ~NS_FRAME_IN_REFLOW;
|
||||
mState &= ~(NS_FRAME_IN_REFLOW | NS_FRAME_FIRST_REFLOW);
|
||||
|
||||
if (nsnull != mView) {
|
||||
// Position and size view relative to its parent, not relative to our
|
||||
|
|
Загрузка…
Ссылка в новой задаче