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; }