mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 476948: Need to be able to clear outstanding MozAfterPaint events r+sr=roc
This commit is contained in:
parent
6d0f9d36c6
commit
a3edad2b35
@ -307,6 +307,8 @@ interface nsIDOMWindowUtils : nsISupports {
|
||||
*/
|
||||
void suppressEventHandling(in boolean aSuppress);
|
||||
|
||||
void clearMozAfterPaintEvents();
|
||||
|
||||
/**
|
||||
* Disable or enable non synthetic test mouse events on *all* windows.
|
||||
*
|
||||
|
@ -683,6 +683,16 @@ nsDOMWindowUtils::GetIsMozAfterPaintPending(PRBool *aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::ClearMozAfterPaintEvents()
|
||||
{
|
||||
nsPresContext* presContext = GetPresContext();
|
||||
if (!presContext)
|
||||
return NS_OK;
|
||||
presContext->ClearMozAfterPaintEvents();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::DisableNonTestMouseEvents(PRBool aDisable)
|
||||
{
|
||||
|
@ -802,6 +802,11 @@ public:
|
||||
return !mSameDocDirtyRegion.IsEmpty() || !mCrossDocDirtyRegion.IsEmpty();
|
||||
}
|
||||
|
||||
void ClearMozAfterPaintEvents() {
|
||||
mSameDocDirtyRegion.SetEmpty();
|
||||
mCrossDocDirtyRegion.SetEmpty();
|
||||
}
|
||||
|
||||
protected:
|
||||
friend class nsRunnableMethod<nsPresContext>;
|
||||
NS_HIDDEN_(void) ThemeChangedInternal();
|
||||
|
Loading…
Reference in New Issue
Block a user