Bug 1302071 - Part 2: Remove ClearMozAfterPaintEvents since it's unused. r?tnikkel draft
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 17 Feb 2017 11:50:28 +1300
changeset 485813 2248f1421d4c297f5b4329d084d4753bd6e4fd8e
parent 485812 f9217a028272b6be943de8ea31b5366560077a10
child 485814 2b25ffbf3bc1ea592da941dbc25406e633d1b19f
push id45861
push usermwoodrow@mozilla.com
push dateFri, 17 Feb 2017 08:19:13 +0000
reviewerstnikkel
bugs1302071
milestone54.0a1
Bug 1302071 - Part 2: Remove ClearMozAfterPaintEvents since it's unused. r?tnikkel MozReview-Commit-ID: FCy5y6cDXrY
dom/base/nsDOMWindowUtils.cpp
dom/interfaces/base/nsIDOMWindowUtils.idl
layout/base/nsPresContext.h
--- 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.