Bug 1301628 - Corrects misc-argument-comment. r=dzbarsky
authorNinad Bhat[:ninad101] <bhat.ninadmb@gmail.com>
Fri, 09 Sep 2016 10:45:00 +0200
changeset 313512 eed2a76f1a596aa4847996136dfd7517484a8f0b
parent 313498 f56deec592bd3cff3e7f9eacb4786a3e50626fca
child 313513 0e3040aed6e9ccc8bb2533161e06690f9902aa8f
push id30690
push userkwierso@gmail.com
push dateTue, 13 Sep 2016 00:08:29 +0000
treeherdermozilla-central@2e35fd4a4932 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdzbarsky
bugs1301628
milestone51.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
Bug 1301628 - Corrects misc-argument-comment. r=dzbarsky
dom/base/nsGlobalWindow.cpp
dom/browser-element/BrowserElementParent.cpp
dom/geolocation/nsGeolocation.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -5977,18 +5977,18 @@ nsGlobalWindow::DispatchResizeEvent(cons
   JS::Rooted<JS::Value> detailValue(cx);
   if (!ToJSValue(cx, detail, &detailValue)) {
     return false;
   }
 
   CustomEvent* customEvent = static_cast<CustomEvent*>(domEvent.get());
   customEvent->InitCustomEvent(cx,
                                NS_LITERAL_STRING("DOMWindowResize"),
-                               /* bubbles = */ true,
-                               /* cancelable = */ true,
+                               /* aCanBubble = */ true,
+                               /* aCancelable = */ true,
                                detailValue,
                                res);
   if (res.Failed()) {
     return false;
   }
 
   domEvent->SetTrusted(true);
   domEvent->WidgetEventPtr()->mFlags.mOnlyChromeDispatch = true;
--- a/dom/browser-element/BrowserElementParent.cpp
+++ b/dom/browser-element/BrowserElementParent.cpp
@@ -106,18 +106,18 @@ DispatchCustomDOMEvent(Element* aFrameEl
   }
 
   RefPtr<CustomEvent> event =
     NS_NewDOMCustomEvent(aFrameElement, presContext, nullptr);
 
   ErrorResult res;
   event->InitCustomEvent(cx,
                          aEventName,
-                         /* bubbles = */ true,
-                         /* cancelable = */ true,
+                         /* aCanBubble = */ true,
+                         /* aCancelable = */ true,
                          aDetailValue,
                          res);
   if (res.Failed()) {
     return false;
   }
   event->SetTrusted(true);
   // Dispatch the event.
   // We don't initialize aStatus here, as our callers have already done so.
--- a/dom/geolocation/nsGeolocation.cpp
+++ b/dom/geolocation/nsGeolocation.cpp
@@ -1252,17 +1252,17 @@ Geolocation::Shutdown()
 
   if (Preferences::GetBool("dom.wakelock.enabled") &&
       XRE_IsContentProcess()) {
     if (nsCOMPtr<nsPIDOMWindowInner> window = do_QueryReferent(mOwner)) {
       nsCOMPtr<nsIDocument> doc = window->GetExtantDoc();
       if (doc) {
         doc->RemoveSystemEventListener(NS_LITERAL_STRING("visibilitychange"),
                                        this,
-                                       /* useCapture = */ true);
+                                       /* aUseCapture = */ true);
       }
     }
   }
 
   if (mService) {
     mService->RemoveLocator(this);
     mService->UpdateAccuracy();
   }