Bug 1346498 part 7 - remove outdated comments in HTMLMediaElement.cpp; r?jwwang draft
authorKaku Kuo <kaku@mozilla.com>
Sat, 11 Mar 2017 16:33:50 +0800
changeset 497406 984b82bd45385e412b7d3d7c89b42ceb9736bd2e
parent 497405 e588d46c6dd5aa41e3e795cf79e24c905dc587e5
child 497407 c2530d9fe592b4fe82bf1c8bdfd36fa990c16012
push id48888
push userbmo:kaku@mozilla.com
push dateMon, 13 Mar 2017 08:46:01 +0000
reviewersjwwang
bugs1346498
milestone55.0a1
Bug 1346498 part 7 - remove outdated comments in HTMLMediaElement.cpp; r?jwwang MDSM's dormant mechanism has nothing to do with the HTMLMediaElement's states now. MozReview-Commit-ID: 4RSHsexy7fi
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -4309,18 +4309,16 @@ nsresult HTMLMediaElement::BindToTree(ns
       !IsEditable();
     // The preload action depends on the value of the autoplay attribute.
     // It's value may have changed, so update it.
     UpdatePreloadAction();
     aDocument->AddMediaContent(this);
   }
 
   if (mDecoder) {
-    // When the MediaElement is binding to tree, the dormant status is
-    // aligned to document's hidden status.
     mDecoder->NotifyOwnerActivityChanged(!IsHidden());
   }
 
   return rv;
 }
 
 /* static */
 void HTMLMediaElement::VideoDecodeSuspendTimerCallback(nsITimer* aTimer, void* aClosure)