Backed out changeset 0a4869ea6249 (bug 1341230) for build bustages
authorIris Hsiao <ihsiao@mozilla.com>
Mon, 06 Mar 2017 11:48:44 +0800
changeset 394960 bbdc5fc3db27ecab0a69bb884cd2cb677aa09fe2
parent 394959 5233a7d951daa594edc37f5b5d3a7f4119822922
child 394961 06734b1a543644d34128a5a921179230ea35510b
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1341230
milestone54.0a1
backs out0a4869ea62490f120f6a0788956526245af54360
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
Backed out changeset 0a4869ea6249 (bug 1341230) for build bustages
dom/base/nsDOMWindowUtils.cpp
dom/interfaces/base/nsIDOMWindowUtils.idl
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -4090,73 +4090,16 @@ nsDOMWindowUtils::IsTimeoutTracking(uint
   NS_ENSURE_STATE(window);
   nsCOMPtr<nsPIDOMWindowInner> innerWindow = window->GetCurrentInnerWindow();
   NS_ENSURE_STATE(innerWindow);
 
   *aResult = innerWindow->TimeoutManager().IsTimeoutTracking(aTimeoutId);
   return NS_OK;
 }
 
-struct StateTableEntry
-{
-  const char* mStateString;
-  EventStates mState;
-};
-
-static const StateTableEntry kManuallyManagedStates[] = {
-  // none yet; but for example: { "highlight", NS_EVENT_STATE_HIGHLIGHT },
-};
-
-static EventStates
-GetEventStateForString(const nsAString& aStateString)
-{
-  for (auto& entry : kManuallyManagedStates) {
-    if (aStateString.EqualsASCII(entry.mStateString)) {
-      return entry.mState;
-    }
-  }
-  return EventStates();
-}
-
-NS_IMETHODIMP
-nsDOMWindowUtils::AddManuallyManagedState(nsIDOMElement* aElement,
-                                          const nsAString& aStateString)
-{
-  nsCOMPtr<Element> element = do_QueryInterface(aElement);
-  if (!element) {
-    return NS_ERROR_INVALID_ARG;
-  }
-
-  EventStates state = GetEventStateForString(aStateString);
-  if (state.IsEmpty()) {
-    return NS_ERROR_INVALID_ARG;
-  }
-
-  element->AddManuallyManagedStates(state);
-  return NS_OK;
-}
-
-NS_IMETHODIMP
-nsDOMWindowUtils::RemoveManuallyManagedState(nsIDOMElement* aElement,
-                                             const nsAString& aStateString)
-{
-  nsCOMPtr<Element> element = do_QueryInterface(aElement);
-  if (!element) {
-    return NS_ERROR_INVALID_ARG;
-  }
-
-  EventStates state = GetEventStateForString(aStateString);
-  if (state.IsEmpty()) {
-    return NS_ERROR_INVALID_ARG;
-  }
-
-  element->RemoveManuallyManagedStates(state);
-  return NS_OK;
-}
-
 NS_INTERFACE_MAP_BEGIN(nsTranslationNodeList)
   NS_INTERFACE_MAP_ENTRY(nsISupports)
   NS_INTERFACE_MAP_ENTRY(nsITranslationNodeList)
 NS_INTERFACE_MAP_END
 
 NS_IMPL_ADDREF(nsTranslationNodeList)
 NS_IMPL_RELEASE(nsTranslationNodeList)
 
--- a/dom/interfaces/base/nsIDOMWindowUtils.idl
+++ b/dom/interfaces/base/nsIDOMWindowUtils.idl
@@ -1971,36 +1971,16 @@ interface nsIDOMWindowUtils : nsISupport
   readonly attribute int32_t gpuProcessPid;
 
   /**
    * Returns true if the given timeout ID is in the list of tracking
    * timeouts.
    */
   boolean isTimeoutTracking(in unsigned long timeoutId);
 
-  /**
-   * Adds an EventStates bit to the element.
-   *
-   * The state string must be one of the following:
-   *   * (none yet; but for example "higlighted" for NS_EVENT_STATE_HIGHLIGHTED)
-   *
-   * The supported state strings are defined in kManuallyManagedStates
-   * in nsDOMWindowUtils.cpp.
-   */
-  void addManuallyManagedState(in nsIDOMElement element,
-                               in AString state);
-
-  /**
-   * Removes the specified EventStates bits from the element.
-   *
-   * See above for the strings that can be passed for |state|.
-   */
-  void removeManuallyManagedState(in nsIDOMElement element,
-                                  in AString state);
-
   // These consts are only for testing purposes.
   const long DEFAULT_MOUSE_POINTER_ID = 0;
   const long DEFAULT_PEN_POINTER_ID   = 1;
   const long DEFAULT_TOUCH_POINTER_ID = 2;
 
   // Match WidgetMouseEventBase::buttonType.
   const long MOUSE_BUTTON_LEFT_BUTTON   = 0;
   const long MOUSE_BUTTON_MIDDLE_BUTTON = 1;