From 4d91459de38883dab00d9e8e80aee35cdab9456c Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Thu, 21 Feb 2002 17:57:25 +0000 Subject: [PATCH] Get rid of assertion at startup. This block shouldn't have been moved by my checkin for bug 959. git-svn-id: svn://10.0.0.236/trunk@115158 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsBoxFrame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/layout/xul/base/src/nsBoxFrame.cpp b/mozilla/layout/xul/base/src/nsBoxFrame.cpp index 34f97f63c64..344c91ba5fc 100644 --- a/mozilla/layout/xul/base/src/nsBoxFrame.cpp +++ b/mozilla/layout/xul/base/src/nsBoxFrame.cpp @@ -1452,11 +1452,6 @@ nsBoxFrame::AttributeChanged(nsIPresContext* aPresContext, else if (aAttribute == nsXULAtoms::mousethrough) { mInner->UpdateMouseThrough(); } - - nsCOMPtr shell; - aPresContext->GetShell(getter_AddRefs(shell)); - nsBoxLayoutState state(aPresContext); - MarkDirty(state); } else if (aAttribute == nsXULAtoms::ordinal) { nsCOMPtr shell; @@ -1479,6 +1474,11 @@ nsBoxFrame::AttributeChanged(nsIPresContext* aPresContext, RegUnregAccessKey(aPresContext, PR_TRUE); } + nsCOMPtr shell; + aPresContext->GetShell(getter_AddRefs(shell)); + nsBoxLayoutState state(aPresContext); + MarkDirty(state); + return rv; }