Bug 1562021 - part2 : using same log module as other VTT related files. r=jya
authorAlastor Wu <alwu@mozilla.com>
Wed, 03 Jul 2019 06:50:04 +0000
changeset 544304 da1f4f3f0c5c27d5fe228b7e0c8c8ef05ca010ac
parent 544303 602865e4e969900b82d0fc740fabd9ef34c01d2f
child 544305 4fa9eb527c78ca714064470b9b4a2ad63eed6689
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1562021
milestone69.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 1562021 - part2 : using same log module as other VTT related files. r=jya This log module should be merged into a part of `WebVTT` log module because it's useless to check this log module independently. Differential Revision: https://phabricator.services.mozilla.com/D36406
dom/html/HTMLTrackElement.cpp
--- a/dom/html/HTMLTrackElement.cpp
+++ b/dom/html/HTMLTrackElement.cpp
@@ -32,19 +32,19 @@
 #include "nsISupportsImpl.h"
 #include "nsISupportsPrimitives.h"
 #include "nsMappedAttributes.h"
 #include "nsNetUtil.h"
 #include "nsStyleConsts.h"
 #include "nsThreadUtils.h"
 #include "nsVideoFrame.h"
 
-static mozilla::LazyLogModule gTrackElementLog("nsTrackElement");
-#define LOG(msg, ...)                          \
-  MOZ_LOG(gTrackElementLog, LogLevel::Verbose, \
+extern mozilla::LazyLogModule gTextTrackLog;
+#define LOG(msg, ...)                       \
+  MOZ_LOG(gTextTrackLog, LogLevel::Verbose, \
           ("TextTrackElement=%p, " msg, this, ##__VA_ARGS__))
 
 // Replace the usual NS_IMPL_NS_NEW_HTML_ELEMENT(Track) so
 // we can return an UnknownElement instead when pref'd off.
 nsGenericHTMLElement* NS_NewHTMLTrackElement(
     already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
     mozilla::dom::FromParser aFromParser) {
   return new mozilla::dom::HTMLTrackElement(std::move(aNodeInfo));