Bug 1302071 - Part 2: Remove ClearMozAfterPaintEvents since it's unused. r?tnikkel
MozReview-Commit-ID: FCy5y6cDXrY
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -1626,26 +1626,16 @@ nsDOMWindowUtils::GetIsMozAfterPaintPend
nsPresContext* presContext = GetPresContext();
if (!presContext)
return NS_OK;
*aResult = presContext->IsDOMPaintEventPending();
return NS_OK;
}
NS_IMETHODIMP
-nsDOMWindowUtils::ClearMozAfterPaintEvents()
-{
- nsPresContext* presContext = GetPresContext();
- if (!presContext)
- return NS_OK;
- presContext->ClearMozAfterPaintEvents();
- return NS_OK;
-}
-
-NS_IMETHODIMP
nsDOMWindowUtils::DisableNonTestMouseEvents(bool aDisable)
{
nsCOMPtr<nsPIDOMWindowOuter> window = do_QueryReferent(mWindow);
NS_ENSURE_TRUE(window, NS_ERROR_FAILURE);
nsIDocShell *docShell = window->GetDocShell();
NS_ENSURE_TRUE(docShell, NS_ERROR_FAILURE);
nsCOMPtr<nsIPresShell> presShell = docShell->GetPresShell();
NS_ENSURE_TRUE(presShell, NS_ERROR_FAILURE);
--- a/dom/interfaces/base/nsIDOMWindowUtils.idl
+++ b/dom/interfaces/base/nsIDOMWindowUtils.idl
@@ -957,18 +957,16 @@ interface nsIDOMWindowUtils : nsISupport
* Suppresses/unsuppresses user initiated event handling in window's document
* and subdocuments.
*
* @throw NS_ERROR_DOM_SECURITY_ERR if called without chrome privileges and
* NS_ERROR_FAILURE if window doesn't have a document.
*/
void suppressEventHandling(in boolean aSuppress);
- void clearMozAfterPaintEvents();
-
/**
* Disable or enable non synthetic test mouse events on *all* windows.
*
* Cannot be accessed from unprivileged context (not content-accessible).
* Will throw a DOM security error if called without chrome privileges.
*
* @param aDisable If true, disable all non synthetic test mouse events
* on all windows. Otherwise, enable them.
--- a/layout/base/nsPresContext.h
+++ b/layout/base/nsPresContext.h
@@ -982,20 +982,16 @@ public:
// Callback for catching invalidations in ContainerLayers
// Passed to LayerProperties::ComputeDifference
static void NotifySubDocInvalidation(mozilla::layers::ContainerLayer* aContainer,
const nsIntRegion& aRegion);
void SetNotifySubDocInvalidationData(mozilla::layers::ContainerLayer* aContainer);
static void ClearNotifySubDocInvalidationData(mozilla::layers::ContainerLayer* aContainer);
bool IsDOMPaintEventPending();
- void ClearMozAfterPaintEvents() {
- mInvalidateRequestsSinceLastPaint.mRequests.Clear();
- mUndeliveredInvalidateRequestsBeforeLastPaint.mRequests.Clear();
- }
/**
* Returns the RestyleManager's restyle generation counter.
*/
uint64_t GetRestyleGeneration() const;
/**
* Returns whether there are any pending restyles or reflows.