author | Matt Woodrow <mwoodrow@mozilla.com> |
Fri, 17 Feb 2017 11:50:28 +1300 | |
changeset 343477 | d42c9f31c8c5538be4b5a861872fd5c4a5b9f309 |
parent 343476 | 31dab83c688ffa60952d170853490061d8ea0ea1 |
child 343478 | 57251e9323774b0e25b1a5c311ff231da2dc2ca7 |
push id | 31381 |
push user | kwierso@gmail.com |
push date | Fri, 17 Feb 2017 20:45:51 +0000 |
treeherder | mozilla-central@f302def88fe5 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | tnikkel |
bugs | 1302071 |
milestone | 54.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- 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.