mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 598482 part 8 - Remove unused mUpdateCnt. r=roc
This commit is contained in:
parent
d13d62c3a3
commit
164e432c6b
@ -480,7 +480,6 @@ nsViewManager::UpdateWidgetArea(nsView *aWidgetView, nsIWidget* aWidget,
|
||||
dirtyRegion->SimplifyOutward(8);
|
||||
nsViewManager* rootVM = RootViewManager();
|
||||
rootVM->mHasPendingUpdates = true;
|
||||
rootVM->IncrementUpdateCount();
|
||||
return;
|
||||
// this should only happen at the top level, and this result
|
||||
// should not be consumed by top-level callers, so it doesn't
|
||||
@ -620,8 +619,6 @@ NS_IMETHODIMP nsViewManager::UpdateViewNoSuppression(nsIView *aView,
|
||||
displayRootVM->UpdateWidgetArea(displayRoot, displayRoot->GetWidget(),
|
||||
nsRegion(damagedRect), nsnull);
|
||||
|
||||
RootViewManager()->IncrementUpdateCount();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -191,31 +191,6 @@ private:
|
||||
|
||||
void DoSetWindowDimensions(nscoord aWidth, nscoord aHeight);
|
||||
|
||||
// Safety helpers
|
||||
void IncrementUpdateCount() {
|
||||
NS_ASSERTION(IsRootVM(),
|
||||
"IncrementUpdateCount called on non-root viewmanager");
|
||||
++mUpdateCnt;
|
||||
}
|
||||
|
||||
void DecrementUpdateCount() {
|
||||
NS_ASSERTION(IsRootVM(),
|
||||
"DecrementUpdateCount called on non-root viewmanager");
|
||||
--mUpdateCnt;
|
||||
}
|
||||
|
||||
PRInt32 UpdateCount() const {
|
||||
NS_ASSERTION(IsRootVM(),
|
||||
"DecrementUpdateCount called on non-root viewmanager");
|
||||
return mUpdateCnt;
|
||||
}
|
||||
|
||||
void ClearUpdateCount() {
|
||||
NS_ASSERTION(IsRootVM(),
|
||||
"DecrementUpdateCount called on non-root viewmanager");
|
||||
mUpdateCnt = 0;
|
||||
}
|
||||
|
||||
bool IsPainting() const {
|
||||
return RootViewManager()->mPainting;
|
||||
}
|
||||
@ -259,9 +234,6 @@ private:
|
||||
// the root view manager. Some have accessor functions to enforce
|
||||
// this, as noted.
|
||||
|
||||
// Use IncrementUpdateCount(), DecrementUpdateCount(), UpdateCount(),
|
||||
// ClearUpdateCount() on the root viewmanager to access mUpdateCnt.
|
||||
PRInt32 mUpdateCnt;
|
||||
PRInt32 mUpdateBatchCnt;
|
||||
// Use IsPainting() and SetPainting() to access mPainting.
|
||||
bool mPainting;
|
||||
|
Loading…
Reference in New Issue
Block a user