mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 528025. Hold a strong ref from the view manager to the device context. r=roc/bz
This commit is contained in:
parent
904b1ef2fb
commit
2237966136
@ -219,7 +219,6 @@ nsViewManager::~nsViewManager()
|
||||
NS_IF_RELEASE(gCleanupContext);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mContext);
|
||||
mObserver = nsnull;
|
||||
}
|
||||
|
||||
@ -260,7 +259,6 @@ NS_IMETHODIMP nsViewManager::Init(nsIDeviceContext* aContext)
|
||||
return NS_ERROR_ALREADY_INITIALIZED;
|
||||
}
|
||||
mContext = aContext;
|
||||
NS_ADDREF(mContext);
|
||||
|
||||
mRefreshEnabled = PR_TRUE;
|
||||
|
||||
|
@ -367,7 +367,7 @@ public: // NOT in nsIViewManager, so private to the view module
|
||||
// pending updates.
|
||||
void PostPendingUpdate() { RootViewManager()->mHasPendingUpdates = PR_TRUE; }
|
||||
private:
|
||||
nsIDeviceContext *mContext;
|
||||
nsCOMPtr<nsIDeviceContext> mContext;
|
||||
nsIViewObserver *mObserver;
|
||||
nsIScrollableView *mRootScrollable;
|
||||
nsIntPoint mMouseLocation; // device units, relative to mRootView
|
||||
|
Loading…
Reference in New Issue
Block a user