<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[173838] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/173838">173838</a></dd>
<dt>Author</dt> <dd>eric.carlson@apple.com</dd>
<dt>Date</dt> <dd>2014-09-22 08:51:24 -0700 (Mon, 22 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Update HTMLMediaElement logging
https://bugs.webkit.org/show_bug.cgi?id=136991

Reviewed by Alexey Proskuryakov.

No new tests, only logging was changed.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::HTMLMediaElement):
(WebCore::HTMLMediaElement::~HTMLMediaElement):
(WebCore::HTMLMediaElement::parseAttribute):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (173837 => 173838)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-09-22 15:34:29 UTC (rev 173837)
+++ trunk/Source/WebCore/ChangeLog        2014-09-22 15:51:24 UTC (rev 173838)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-09-22  Eric Carlson  &lt;eric.carlson@apple.com&gt;
+
+        Update HTMLMediaElement logging
+        https://bugs.webkit.org/show_bug.cgi?id=136991
+
+        Reviewed by Alexey Proskuryakov.
+
+        No new tests, only logging was changed.
+
+        * html/HTMLMediaElement.cpp:
+        (WebCore::HTMLMediaElement::HTMLMediaElement):
+        (WebCore::HTMLMediaElement::~HTMLMediaElement):
+        (WebCore::HTMLMediaElement::parseAttribute):
+
</ins><span class="cx"> 2014-09-22  Eva Balazsfalvi  &lt;evab.u-szeged@partner.samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION(r173631): It broke the !ENABLE(VIDEO) build
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (173837 => 173838)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2014-09-22 15:34:29 UTC (rev 173837)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2014-09-22 15:51:24 UTC (rev 173838)
</span><span class="lines">@@ -331,7 +331,7 @@
</span><span class="cx">     , m_mediaStreamSrcObject(nullptr)
</span><span class="cx"> #endif
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::HTMLMediaElement&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::HTMLMediaElement(%p)&quot;, this);
</ins><span class="cx">     setHasCustomStyleResolveCallbacks();
</span><span class="cx"> 
</span><span class="cx">     m_mediaSession-&gt;addBehaviorRestriction(HTMLMediaSession::RequireUserGestureForFullscreen);
</span><span class="lines">@@ -369,7 +369,7 @@
</span><span class="cx"> 
</span><span class="cx"> HTMLMediaElement::~HTMLMediaElement()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::~HTMLMediaElement&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::~HTMLMediaElement(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_asyncEventQueue.close();
</span><span class="cx"> 
</span><span class="lines">@@ -645,7 +645,7 @@
</span><span class="cx"> 
</span><span class="cx"> Node::InsertionNotificationRequest HTMLMediaElement::insertedInto(ContainerNode&amp; insertionPoint)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::insertedInto&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::insertedInto(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     HTMLElement::insertedInto(insertionPoint);
</span><span class="cx">     if (insertionPoint.inDocument()) {
</span><span class="lines">@@ -670,7 +670,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::removedFrom(ContainerNode&amp; insertionPoint)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::removedFrom&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::removedFrom(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_inActiveDocument = false;
</span><span class="cx">     if (insertionPoint.inDocument()) {
</span><span class="lines">@@ -716,7 +716,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::scheduleDelayedAction(DelayedActionType actionType)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::scheduleLoad&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::scheduleLoad(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     if ((actionType &amp; LoadMediaResource) &amp;&amp; !(m_pendingActionFlags &amp; LoadMediaResource)) {
</span><span class="cx">         prepareForLoad();
</span><span class="lines">@@ -746,7 +746,7 @@
</span><span class="cx"> void HTMLMediaElement::scheduleEvent(const AtomicString&amp; eventName)
</span><span class="cx"> {
</span><span class="cx"> #if LOG_MEDIA_EVENTS
</span><del>-    LOG(Media, &quot;HTMLMediaElement::scheduleEvent - scheduling '%s'&quot;, eventName.string().ascii().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::scheduleEvent(%p) - scheduling '%s'&quot;, this, eventName.string().ascii().data());
</ins><span class="cx"> #endif
</span><span class="cx">     RefPtr&lt;Event&gt; event = Event::create(eventName, false, true);
</span><span class="cx">     
</span><span class="lines">@@ -838,7 +838,7 @@
</span><span class="cx">             break;
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    LOG(Media, &quot;HTMLMediaElement::canPlayType(%s, %s, %s) -&gt; %s&quot;, mimeType.utf8().data(), keySystem.utf8().data(), url.stringCenterEllipsizedToLength().utf8().data(), canPlay.utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::canPlayType(%p) - [%s, %s, %s] -&gt; %s&quot;, this, mimeType.utf8().data(), keySystem.utf8().data(), url.stringCenterEllipsizedToLength().utf8().data(), canPlay.utf8().data());
</ins><span class="cx"> 
</span><span class="cx">     return canPlay;
</span><span class="cx"> }
</span><span class="lines">@@ -847,7 +847,7 @@
</span><span class="cx"> {
</span><span class="cx">     Ref&lt;HTMLMediaElement&gt; protect(*this); // loadInternal may result in a 'beforeload' event, which can make arbitrary DOM mutations.
</span><span class="cx">     
</span><del>-    LOG(Media, &quot;HTMLMediaElement::load()&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::load(%p)&quot;, this);
</ins><span class="cx">     
</span><span class="cx">     if (!m_mediaSession-&gt;dataLoadingPermitted(*this))
</span><span class="cx">         return;
</span><span class="lines">@@ -861,7 +861,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::prepareForLoad()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::prepareForLoad&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::prepareForLoad(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // Perform the cleanup required for the resource load algorithm to run.
</span><span class="cx">     stopPeriodicTimers();
</span><span class="lines">@@ -1024,7 +1024,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::selectMediaResource()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::selectMediaResource&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::selectMediaResource(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     enum Mode { attribute, children };
</span><span class="cx"> 
</span><span class="lines">@@ -1046,7 +1046,7 @@
</span><span class="cx">             setShouldDelayLoadEvent(false);
</span><span class="cx">             m_networkState = NETWORK_EMPTY;
</span><span class="cx"> 
</span><del>-            LOG(Media, &quot;HTMLMediaElement::selectMediaResource, nothing to load&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::selectMediaResource(%p) - nothing to load&quot;, this);
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -1067,7 +1067,7 @@
</span><span class="cx">         URL mediaURL = getNonEmptyURLAttribute(srcAttr);
</span><span class="cx">         if (mediaURL.isEmpty()) {
</span><span class="cx">             mediaLoadingFailed(MediaPlayer::FormatError);
</span><del>-            LOG(Media, &quot;HTMLMediaElement::selectMediaResource, empty 'src'&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::selectMediaResource(%p) -  empty 'src'&quot;, this);
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -1081,7 +1081,7 @@
</span><span class="cx">         // will have to pick a media engine based on the file extension.
</span><span class="cx">         ContentType contentType((String()));
</span><span class="cx">         loadResource(mediaURL, contentType, String());
</span><del>-        LOG(Media, &quot;HTMLMediaElement::selectMediaResource, using 'src' attribute url&quot;);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::selectMediaResource(%p) - using 'src' attribute url&quot;, this);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -1129,7 +1129,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(isSafeToLoadURL(initialURL, Complain));
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::loadResource(%s, %s, %s)&quot;, urlForLoggingMedia(initialURL).utf8().data(), contentType.raw().utf8().data(), keySystem.utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::loadResource(%p) - %s, %s, %s&quot;, this, urlForLoggingMedia(initialURL).utf8().data(), contentType.raw().utf8().data(), keySystem.utf8().data());
</ins><span class="cx"> 
</span><span class="cx">     Frame* frame = document().frame();
</span><span class="cx">     if (!frame) {
</span><span class="lines">@@ -1165,10 +1165,10 @@
</span><span class="cx"> 
</span><span class="cx">     if (resource) {
</span><span class="cx">         url = createFileURLForApplicationCacheResource(resource-&gt;path());
</span><del>-        LOG(Media, &quot;HTMLMediaElement::loadResource - will load from app cache -&gt; %s&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::loadResource(%p) - will load from app cache -&gt; %s&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::loadResource - m_currentSrc -&gt; %s&quot;, urlForLoggingMedia(m_currentSrc).utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::loadResource(%p) - m_currentSrc -&gt; %s&quot;, this, urlForLoggingMedia(m_currentSrc).utf8().data());
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(MEDIA_STREAM)
</span><span class="cx">     if (MediaStreamRegistry::registry().lookup(url.string()))
</span><span class="lines">@@ -1267,7 +1267,7 @@
</span><span class="cx">     if (ignoreTrackDisplayUpdateRequests())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::updateActiveTextTracks&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::updateActiveTextTracks(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // 1 - Let current cues be a list of cues, initialized to contain all the
</span><span class="cx">     // cues of all the hidden, showing, or showing by default text tracks of the
</span><span class="lines">@@ -1672,7 +1672,7 @@
</span><span class="cx"> bool HTMLMediaElement::isSafeToLoadURL(const URL&amp; url, InvalidURLAction actionIfInvalid)
</span><span class="cx"> {
</span><span class="cx">     if (!url.isValid()) {
</span><del>-        LOG(Media, &quot;HTMLMediaElement::isSafeToLoadURL(%s) -&gt; FALSE because url is invalid&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::isSafeToLoadURL(%p) - %s -&gt; FALSE because url is invalid&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">         return false;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -1680,12 +1680,12 @@
</span><span class="cx">     if (!frame || !document().securityOrigin()-&gt;canDisplay(url)) {
</span><span class="cx">         if (actionIfInvalid == Complain)
</span><span class="cx">             FrameLoader::reportLocalLoadFailed(frame, url.stringCenterEllipsizedToLength());
</span><del>-        LOG(Media, &quot;HTMLMediaElement::isSafeToLoadURL(%s) -&gt; FALSE rejected by SecurityOrigin&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::isSafeToLoadURL(%p) - %s -&gt; FALSE rejected by SecurityOrigin&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">         return false;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (!document().contentSecurityPolicy()-&gt;allowMediaFromSource(url)) {
</span><del>-        LOG(Media, &quot;HTMLMediaElement::isSafeToLoadURL(%s) -&gt; rejected by Content Security Policy&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::isSafeToLoadURL(%p) - %s -&gt; rejected by Content Security Policy&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">         return false;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -1704,7 +1704,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::waitForSourceChange()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::waitForSourceChange&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::waitForSourceChange(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     stopPeriodicTimers();
</span><span class="cx">     m_loadState = WaitingForSource;
</span><span class="lines">@@ -1723,7 +1723,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::noneSupported()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::noneSupported&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::noneSupported(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     stopPeriodicTimers();
</span><span class="cx">     m_loadState = WaitingForSource;
</span><span class="lines">@@ -1764,7 +1764,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaLoadingFailedFatally(MediaPlayer::NetworkState error)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaLoadingFailedFatally(%d)&quot;, static_cast&lt;int&gt;(error));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaLoadingFailedFatally(%p) - error = %d&quot;, this, static_cast&lt;int&gt;(error));
</ins><span class="cx"> 
</span><span class="cx">     // 1 - The user agent should cancel the fetching process.
</span><span class="cx">     stopPeriodicTimers();
</span><span class="lines">@@ -1805,7 +1805,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::cancelPendingEventsAndCallbacks()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::cancelPendingEventsAndCallbacks&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::cancelPendingEventsAndCallbacks(%p)&quot;, this);
</ins><span class="cx">     m_asyncEventQueue.cancelAllEvents();
</span><span class="cx"> 
</span><span class="cx">     for (auto&amp; source : childrenOfType&lt;HTMLSourceElement&gt;(*this))
</span><span class="lines">@@ -1869,7 +1869,7 @@
</span><span class="cx">         if (m_currentSourceNode)
</span><span class="cx">             m_currentSourceNode-&gt;scheduleErrorEvent();
</span><span class="cx">         else
</span><del>-            LOG(Media, &quot;HTMLMediaElement::setNetworkState - error event not sent, &lt;source&gt; was removed&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::setNetworkState(%p) - error event not sent, &lt;source&gt; was removed&quot;, this);
</ins><span class="cx">         
</span><span class="cx">         // 9.Otherwise.10 - Asynchronously await a stable state. The synchronous section consists of all the remaining steps of this algorithm until the algorithm says the synchronous section has ended.
</span><span class="cx">         
</span><span class="lines">@@ -1877,10 +1877,10 @@
</span><span class="cx">         forgetResourceSpecificTracks();
</span><span class="cx"> 
</span><span class="cx">         if (havePotentialSourceChild()) {
</span><del>-            LOG(Media, &quot;HTMLMediaElement::setNetworkState - scheduling next &lt;source&gt;&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::setNetworkState(%p) - scheduling next &lt;source&gt;&quot;, this);
</ins><span class="cx">             scheduleNextSourceChild();
</span><span class="cx">         } else {
</span><del>-            LOG(Media, &quot;HTMLMediaElement::setNetworkState - no more &lt;source&gt; elements, waiting&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::setNetworkState(%p) - no more &lt;source&gt; elements, waiting&quot;, this);
</ins><span class="cx">             waitForSourceChange();
</span><span class="cx">         }
</span><span class="cx">         
</span><span class="lines">@@ -1903,7 +1903,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setNetworkState(MediaPlayer::NetworkState state)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setNetworkState(%d) - current state is %d&quot;, static_cast&lt;int&gt;(state), static_cast&lt;int&gt;(m_networkState));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setNetworkState(%p) - new state = %d, current state = %d&quot;, this, static_cast&lt;int&gt;(state), static_cast&lt;int&gt;(m_networkState));
</ins><span class="cx"> 
</span><span class="cx">     if (state == MediaPlayer::Empty) {
</span><span class="cx">         // Just update the cached state and leave, we can't do anything.
</span><span class="lines">@@ -1965,7 +1965,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setReadyState(MediaPlayer::ReadyState state)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setReadyState(%d) - current state is %d,&quot;, static_cast&lt;int&gt;(state), static_cast&lt;int&gt;(m_readyState));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setReadyState(%p) - new state = %d, current state = %d,&quot;, this, static_cast&lt;int&gt;(state), static_cast&lt;int&gt;(m_readyState));
</ins><span class="cx"> 
</span><span class="cx">     // Set &quot;wasPotentiallyPlaying&quot; BEFORE updating m_readyState, potentiallyPlaying() uses it
</span><span class="cx">     bool wasPotentiallyPlaying = potentiallyPlaying();
</span><span class="lines">@@ -2233,19 +2233,19 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::rewind(double timeDelta)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::rewind(%f)&quot;, timeDelta);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::rewind(%p) - %f&quot;, this, timeDelta);
</ins><span class="cx">     setCurrentTime(std::max(currentMediaTime() - MediaTime::createWithDouble(timeDelta), minTimeSeekable()));
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::returnToRealtime()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::returnToRealtime&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::returnToRealtime(%p)&quot;, this);
</ins><span class="cx">     setCurrentTime(maxTimeSeekable());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::addPlayedRange(const MediaTime&amp; start, const MediaTime&amp; end)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::addPlayedRange(%s, %s)&quot;, toString(start).utf8().data(), toString(end).utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::addPlayedRange(%p) - [%s, %s]&quot;, this, toString(start).utf8().data(), toString(end).utf8().data());
</ins><span class="cx">     if (!m_playedTimeRanges)
</span><span class="cx">         m_playedTimeRanges = TimeRanges::create();
</span><span class="cx">     m_playedTimeRanges-&gt;ranges().add(start, end);
</span><span class="lines">@@ -2277,7 +2277,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::fastSeek(const MediaTime&amp; time)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::fastSeek(%s)&quot;, toString(time).utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::fastSeek(%p) - %s&quot;, this, toString(time).utf8().data());
</ins><span class="cx">     // 4.7.10.9 Seeking
</span><span class="cx">     // 9. If the approximate-for-speed flag is set, adjust the new playback position to a value that will
</span><span class="cx">     // allow for playback to resume promptly. If new playback position before this step is before current
</span><span class="lines">@@ -2294,13 +2294,13 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::seek(const MediaTime&amp; time)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::seek(%s)&quot;, toString(time).utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::seek(%p) - %s&quot;, this, toString(time).utf8().data());
</ins><span class="cx">     seekWithTolerance(time, MediaTime::zeroTime(), MediaTime::zeroTime(), true);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::seekInternal(const MediaTime&amp; time)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::seekInternal(%s)&quot;, toString(time).utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::seekInternal(%p) - %s&quot;, this, toString(time).utf8().data());
</ins><span class="cx">     seekWithTolerance(time, MediaTime::zeroTime(), MediaTime::zeroTime(), false);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2380,7 +2380,7 @@
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">     MediaTime mediaTime = m_player-&gt;mediaTimeForTimeValue(time);
</span><span class="cx">     if (time != mediaTime)
</span><del>-        LOG(Media, &quot;HTMLMediaElement::seekTimerFired(%s) - media timeline equivalent is %s&quot;, toString(time).utf8().data(), toString(mediaTime).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::seekTimerFired(%p) - %s - media timeline equivalent is %s&quot;, this, toString(time).utf8().data(), toString(mediaTime).utf8().data());
</ins><span class="cx"> #endif
</span><span class="cx">     time = m_player-&gt;mediaTimeForTimeValue(time);
</span><span class="cx"> 
</span><span class="lines">@@ -2429,7 +2429,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::finishSeek()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::finishSeek&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::finishSeek(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // 4.8.10.9 Seeking
</span><span class="cx">     // 14 - Set the seeking IDL attribute to false.
</span><span class="lines">@@ -2487,7 +2487,7 @@
</span><span class="cx"> {
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">     if (m_cachedTime.isValid())
</span><del>-        LOG(Media, &quot;HTMLMediaElement::invalidateCachedTime&quot;);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::invalidateCachedTime(%p)&quot;, this);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     // Don't try to cache movie time when playback first starts as the time reported by the engine
</span><span class="lines">@@ -2515,7 +2515,7 @@
</span><span class="cx">         return MediaTime::zeroTime();
</span><span class="cx"> 
</span><span class="cx">     if (m_seeking) {
</span><del>-        LOG(Media, &quot;HTMLMediaElement::currentTime - seeking, returning %s&quot;, toString(m_lastSeekTime).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::currentTime(%p) - seeking, returning %s&quot;, this, toString(m_lastSeekTime).utf8().data());
</ins><span class="cx">         return m_lastSeekTime;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -2523,7 +2523,7 @@
</span><span class="cx"> #if LOG_CACHED_TIME_WARNINGS
</span><span class="cx">         MediaTime delta = m_cachedTime - m_player-&gt;currentTime();
</span><span class="cx">         if (delta &gt; minCachedDeltaForWarning)
</span><del>-            LOG(Media, &quot;HTMLMediaElement::currentTime - WARNING, cached time is %s seconds off of media time when paused&quot;, toString(delta).utf8().data());
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::currentTime(%p) - WARNING, cached time is %s seconds off of media time when paused&quot;, this, toString(delta).utf8().data());
</ins><span class="cx"> #endif
</span><span class="cx">         return m_cachedTime;
</span><span class="cx">     }
</span><span class="lines">@@ -2542,7 +2542,7 @@
</span><span class="cx"> #if LOG_CACHED_TIME_WARNINGS
</span><span class="cx">             MediaTime delta = adjustedCacheTime - m_player-&gt;currentTime();
</span><span class="cx">             if (delta &gt; minCachedDeltaForWarning)
</span><del>-                LOG(Media, &quot;HTMLMediaElement::currentTime - WARNING, cached time is %f seconds off of media time when playing&quot;, delta);
</del><ins>+                LOG(Media, &quot;HTMLMediaElement::currentTime(%p) - WARNING, cached time is %f seconds off of media time when playing&quot;, this, delta);
</ins><span class="cx"> #endif
</span><span class="cx">             return adjustedCacheTime;
</span><span class="cx">         }
</span><span class="lines">@@ -2552,7 +2552,7 @@
</span><span class="cx">     if (maximumDurationToCacheMediaTime &amp;&amp; now &gt; m_minimumClockTimeToUpdateCachedTime &amp;&amp; m_cachedTime != MediaPlayer::invalidTime()) {
</span><span class="cx">         double clockDelta = now - m_clockTimeAtLastCachedTimeUpdate;
</span><span class="cx">         MediaTime delta = m_cachedTime + MediaTime::createWithDouble(effectivePlaybackRate() * clockDelta) - m_player-&gt;currentTime();
</span><del>-        LOG(Media, &quot;HTMLMediaElement::currentTime - cached time was %s seconds off of media time when it expired&quot;, toString(delta).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::currentTime(%p) - cached time was %s seconds off of media time when it expired&quot;, this, toString(delta).utf8().data());
</ins><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -2639,7 +2639,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setPlaybackRate(double rate)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setPlaybackRate(%f)&quot;, rate);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setPlaybackRate(%p) - %f&quot;, this, rate);
</ins><span class="cx"> 
</span><span class="cx">     if (m_player &amp;&amp; potentiallyPlaying() &amp;&amp; m_player-&gt;rate() != rate &amp;&amp; !m_mediaController)
</span><span class="cx">         m_player-&gt;setRate(rate);
</span><span class="lines">@@ -2665,7 +2665,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setWebkitPreservesPitch(bool preservesPitch)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setWebkitPreservesPitch(%s)&quot;, boolString(preservesPitch));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setWebkitPreservesPitch(%p) - %s&quot;, this, boolString(preservesPitch));
</ins><span class="cx"> 
</span><span class="cx">     m_webkitPreservesPitch = preservesPitch;
</span><span class="cx">     
</span><span class="lines">@@ -2715,13 +2715,13 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setPreload(const String&amp; preload)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setPreload(%s)&quot;, preload.utf8().data());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setPreload(%p) - %s&quot;, this, preload.utf8().data());
</ins><span class="cx">     setAttribute(preloadAttr, preload);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::play()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::play()&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::play(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     if (!m_mediaSession-&gt;playbackPermitted(*this))
</span><span class="cx">         return;
</span><span class="lines">@@ -2733,7 +2733,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::playInternal()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::playInternal&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::playInternal(%p)&quot;, this);
</ins><span class="cx">     
</span><span class="cx">     if (!m_mediaSession-&gt;clientWillBeginPlayback()) {
</span><span class="cx">         LOG(Media, &quot;  returning because of interruption&quot;);
</span><span class="lines">@@ -2767,7 +2767,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::pause()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::pause()&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::pause(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     if (!m_mediaSession-&gt;playbackPermitted(*this))
</span><span class="cx">         return;
</span><span class="lines">@@ -2778,7 +2778,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::pauseInternal()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::pauseInternal&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::pauseInternal(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     if (!m_mediaSession-&gt;clientWillPausePlayback()) {
</span><span class="cx">         LOG(Media, &quot;  returning because of interruption&quot;);
</span><span class="lines">@@ -2926,7 +2926,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setLoop(bool b)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setLoop(%s)&quot;, boolString(b));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setLoop(%p) - %s&quot;, this, boolString(b));
</ins><span class="cx">     setBooleanAttribute(loopAttr, b);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2951,7 +2951,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setControls(bool b)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setControls(%s)&quot;, boolString(b));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setControls(%p) - %s&quot;, this, boolString(b));
</ins><span class="cx">     setBooleanAttribute(controlsAttr, b);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2962,7 +2962,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setVolume(double vol, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setVolume(%f)&quot;, vol);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setVolume(%p) - %f&quot;, this, vol);
</ins><span class="cx"> 
</span><span class="cx">     if (vol &lt; 0.0f || vol &gt; 1.0f) {
</span><span class="cx">         ec = INDEX_SIZE_ERR;
</span><span class="lines">@@ -2986,7 +2986,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setMuted(bool muted)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setMuted(%s)&quot;, boolString(muted));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setMuted(%p) - %s&quot;, this, boolString(muted));
</ins><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     UNUSED_PARAM(muted);
</span><span class="lines">@@ -3009,7 +3009,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::togglePlayState()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::togglePlayState - canPlay() is %s&quot;, boolString(canPlay()));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::togglePlayState(%p) - canPlay() is %s&quot;, this, boolString(canPlay()));
</ins><span class="cx"> 
</span><span class="cx">     // We can safely call the internal play/pause methods, which don't check restrictions, because
</span><span class="cx">     // this method is only called from the built-in media controller
</span><span class="lines">@@ -3022,7 +3022,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::beginScrubbing()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::beginScrubbing - paused() is %s&quot;, boolString(paused()));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::beginScrubbing(%p) - paused() is %s&quot;, this, boolString(paused()));
</ins><span class="cx"> 
</span><span class="cx">     if (!paused()) {
</span><span class="cx">         if (ended()) {
</span><span class="lines">@@ -3041,7 +3041,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::endScrubbing()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::endScrubbing - m_pausedInternal is %s&quot;, boolString(m_pausedInternal));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::endScrubbing(%p) - m_pausedInternal is %s&quot;, this, boolString(m_pausedInternal));
</ins><span class="cx"> 
</span><span class="cx">     if (m_pausedInternal)
</span><span class="cx">         setPausedInternal(false);
</span><span class="lines">@@ -3521,7 +3521,7 @@
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">     if (trackElement-&gt;hasTagName(trackTag)) {
</span><span class="cx">         URL url = trackElement-&gt;getNonEmptyURLAttribute(srcAttr);
</span><del>-        LOG(Media, &quot;HTMLMediaElement::didRemoveTrack - 'src' is %s&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::didRemoveTrack(%p) - 'src' is %s&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -3549,7 +3549,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(group.tracks.size());
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::configureTextTrackGroup&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::configureTextTrackGroup(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     Page* page = document().page();
</span><span class="cx">     CaptionUserPreferences* captionPreferences = page? page-&gt;group().captionPreferences() : 0;
</span><span class="lines">@@ -3579,7 +3579,7 @@
</span><span class="cx">             currentlyEnabledTracks.append(textTrack);
</span><span class="cx"> 
</span><span class="cx">         int trackScore = captionPreferences ? captionPreferences-&gt;textTrackSelectionScore(textTrack.get(), this) : 0;
</span><del>-        LOG(Media, &quot;HTMLMediaElement::configureTextTrackGroup -  '%s' track with language '%s' has score %i&quot;, textTrack-&gt;kind().string().utf8().data(), textTrack-&gt;language().string().utf8().data(), trackScore);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::configureTextTrackGroup(%p) -  '%s' track with language '%s' has score %i&quot;, this, textTrack-&gt;kind().string().utf8().data(), textTrack-&gt;language().string().utf8().data(), trackScore);
</ins><span class="cx"> 
</span><span class="cx">         if (trackScore) {
</span><span class="cx"> 
</span><span class="lines">@@ -3688,7 +3688,7 @@
</span><span class="cx">     
</span><span class="cx"> void HTMLMediaElement::updateCaptionContainer()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::updateCaptionContainer&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::updateCaptionContainer(%p)&quot;, this);
</ins><span class="cx"> #if ENABLE(MEDIA_CONTROLS_SCRIPT)
</span><span class="cx">     Page* page = document().page();
</span><span class="cx">     if (!page)
</span><span class="lines">@@ -3864,13 +3864,13 @@
</span><span class="cx">     // Don't log if this was just called to find out if there are any valid &lt;source&gt; elements.
</span><span class="cx">     bool shouldLog = actionIfInvalid != DoNothing;
</span><span class="cx">     if (shouldLog)
</span><del>-        LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild&quot;);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p)&quot;, this);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     if (!m_nextChildNodeToConsider) {
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">         if (shouldLog)
</span><del>-            LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild -&gt; 0x0000, \&quot;\&quot;&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p) - end of list, stopping&quot;, this);
</ins><span class="cx"> #endif
</span><span class="cx">         return URL();
</span><span class="cx">     }
</span><span class="lines">@@ -3903,7 +3903,7 @@
</span><span class="cx">         mediaURL = source-&gt;getNonEmptyURLAttribute(srcAttr);
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">         if (shouldLog)
</span><del>-            LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild - 'src' is %s&quot;, urlForLoggingMedia(mediaURL).utf8().data());
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p) - 'src' is %s&quot;, this, urlForLoggingMedia(mediaURL).utf8().data());
</ins><span class="cx"> #endif
</span><span class="cx">         if (mediaURL.isEmpty())
</span><span class="cx">             goto check_again;
</span><span class="lines">@@ -3913,7 +3913,7 @@
</span><span class="cx">             RefPtr&lt;MediaQuerySet&gt; media = MediaQuerySet::createAllowingDescriptionSyntax(source-&gt;media());
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">             if (shouldLog)
</span><del>-                LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild - 'media' is %s&quot;, source-&gt;media().utf8().data());
</del><ins>+                LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p) - 'media' is %s&quot;, this, source-&gt;media().utf8().data());
</ins><span class="cx"> #endif
</span><span class="cx">             if (!screenEval.eval(media.get())) 
</span><span class="cx">                 goto check_again;
</span><span class="lines">@@ -3926,7 +3926,7 @@
</span><span class="cx">         if (!type.isEmpty() || !system.isEmpty()) {
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">             if (shouldLog)
</span><del>-                LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild - 'type' is '%s' - key system is '%s'&quot;, type.utf8().data(), system.utf8().data());
</del><ins>+                LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p) - 'type' is '%s' - key system is '%s'&quot;, this, type.utf8().data(), system.utf8().data());
</ins><span class="cx"> #endif
</span><span class="cx">             MediaEngineSupportParameters parameters;
</span><span class="cx">             ContentType contentType(type);
</span><span class="lines">@@ -3948,7 +3948,7 @@
</span><span class="cx"> 
</span><span class="cx">         // A 'beforeload' event handler can mutate the DOM, so check to see if the source element is still a child node.
</span><span class="cx">         if (node.parentNode() != this) {
</span><del>-            LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild : 'beforeload' removed current element&quot;);
</del><ins>+            LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p) - 'beforeload' removed current element&quot;, this);
</ins><span class="cx">             source = 0;
</span><span class="cx">             goto check_again;
</span><span class="cx">         }
</span><span class="lines">@@ -3978,19 +3978,19 @@
</span><span class="cx"> 
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">     if (shouldLog)
</span><del>-        LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild -&gt; %p, %s&quot;, m_currentSourceNode.get(), canUseSourceElement ? urlForLoggingMedia(mediaURL).utf8().data() : &quot;&quot;);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::selectNextSourceChild(%p) -&gt; %p, %s&quot;, this, m_currentSourceNode.get(), canUseSourceElement ? urlForLoggingMedia(mediaURL).utf8().data() : &quot;&quot;);
</ins><span class="cx"> #endif
</span><span class="cx">     return canUseSourceElement ? mediaURL : URL();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::sourceWasAdded(HTMLSourceElement* source)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::sourceWasAdded(%p)&quot;, source);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::sourceWasAdded(%p) - %p&quot;, this, source);
</ins><span class="cx"> 
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">     if (source-&gt;hasTagName(sourceTag)) {
</span><span class="cx">         URL url = source-&gt;getNonEmptyURLAttribute(srcAttr);
</span><del>-        LOG(Media, &quot;HTMLMediaElement::sourceWasAdded - 'src' is %s&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::sourceWasAdded(%p) - 'src' is %s&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx">     
</span><span class="lines">@@ -4008,7 +4008,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (m_currentSourceNode &amp;&amp; source == m_currentSourceNode-&gt;nextSibling()) {
</span><del>-        LOG(Media, &quot;HTMLMediaElement::sourceWasAdded - &lt;source&gt; inserted immediately after current source&quot;);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::sourceWasAdded(%p) - &lt;source&gt; inserted immediately after current source&quot;, this);
</ins><span class="cx">         m_nextChildNodeToConsider = source;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="lines">@@ -4033,12 +4033,12 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::sourceWasRemoved(HTMLSourceElement* source)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::sourceWasRemoved(%p)&quot;, source);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::sourceWasRemoved(%p) - %p&quot;, this, source);
</ins><span class="cx"> 
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx">     if (source-&gt;hasTagName(sourceTag)) {
</span><span class="cx">         URL url = source-&gt;getNonEmptyURLAttribute(srcAttr);
</span><del>-        LOG(Media, &quot;HTMLMediaElement::sourceWasRemoved - 'src' is %s&quot;, urlForLoggingMedia(url).utf8().data());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::sourceWasRemoved(%p) - 'src' is %s&quot;, this, urlForLoggingMedia(url).utf8().data());
</ins><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -4048,19 +4048,19 @@
</span><span class="cx">     if (source == m_nextChildNodeToConsider) {
</span><span class="cx">         if (m_currentSourceNode)
</span><span class="cx">             m_nextChildNodeToConsider = m_currentSourceNode-&gt;nextSibling();
</span><del>-        LOG(Media, &quot;HTMLMediaElement::sourceRemoved - m_nextChildNodeToConsider set to %p&quot;, m_nextChildNodeToConsider.get());
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::sourceRemoved(%p) - m_nextChildNodeToConsider set to %p&quot;, this, m_nextChildNodeToConsider.get());
</ins><span class="cx">     } else if (source == m_currentSourceNode) {
</span><span class="cx">         // Clear the current source node pointer, but don't change the movie as the spec says:
</span><span class="cx">         // 4.8.8 - Dynamically modifying a source element and its attribute when the element is already 
</span><span class="cx">         // inserted in a video or audio element will have no effect.
</span><span class="cx">         m_currentSourceNode = 0;
</span><del>-        LOG(Media, &quot;HTMLMediaElement::sourceRemoved - m_currentSourceNode set to 0&quot;);
</del><ins>+        LOG(Media, &quot;HTMLMediaElement::sourceRemoved(%p) - m_currentSourceNode set to 0&quot;, this);
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerTimeChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerTimeChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerTimeChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(VIDEO_TRACK)
</span><span class="cx">     if (RuntimeEnabledFeatures::sharedFeatures().webkitVideoTrackEnabled())
</span><span class="lines">@@ -4128,7 +4128,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerVolumeChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerVolumeChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerVolumeChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx">     if (m_player) {
</span><span class="lines">@@ -4144,7 +4144,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerMuteChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerMuteChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerMuteChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx">     if (m_player)
</span><span class="lines">@@ -4154,7 +4154,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerDurationChanged(MediaPlayer* player)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerDurationChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerDurationChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx"> 
</span><span class="lines">@@ -4171,7 +4171,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerRateChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerRateChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerRateChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx"> 
</span><span class="lines">@@ -4188,7 +4188,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerPlaybackStateChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerPlaybackStateChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerPlaybackStateChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     if (!m_player || m_pausedInternal)
</span><span class="cx">         return;
</span><span class="lines">@@ -4203,7 +4203,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerSawUnsupportedTracks(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerSawUnsupportedTracks&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerSawUnsupportedTracks(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // The MediaPlayer came across content it cannot completely handle.
</span><span class="cx">     // This is normally acceptable except when we are in a standalone
</span><span class="lines">@@ -4214,7 +4214,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerResourceNotSupported(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerResourceNotSupported&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerResourceNotSupported(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // The MediaPlayer came across content which no installed engine supports.
</span><span class="cx">     mediaLoadingFailed(MediaPlayer::FormatError);
</span><span class="lines">@@ -4232,7 +4232,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerSizeChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerSizeChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerSizeChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx">     if (renderer())
</span><span class="lines">@@ -4249,7 +4249,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerRenderingModeChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerRenderingModeChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerRenderingModeChanged(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // Kick off a fake recalcStyle that will update the compositing tree.
</span><span class="cx">     setNeedsStyleRecalc(SyntheticStyleChange);
</span><span class="lines">@@ -4267,7 +4267,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerEngineUpdated(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerEngineUpdated&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerEngineUpdated(%p)&quot;, this);
</ins><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx">     if (renderer())
</span><span class="cx">         renderer()-&gt;updateFromElement();
</span><span class="lines">@@ -4302,7 +4302,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerCharacteristicChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerCharacteristicChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerCharacteristicChanged(%p)&quot;, this);
</ins><span class="cx">     
</span><span class="cx">     beginProcessingMediaPlayerCallback();
</span><span class="cx"> 
</span><span class="lines">@@ -4499,8 +4499,7 @@
</span><span class="cx">     bool shouldBePlaying = potentiallyPlaying();
</span><span class="cx">     bool playerPaused = m_player-&gt;paused();
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::updatePlayState - shouldBePlaying = %s, playerPaused = %s&quot;,
-        boolString(shouldBePlaying), boolString(playerPaused));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::updatePlayState(%p) - shouldBePlaying = %s, playerPaused = %s&quot;, this, boolString(shouldBePlaying), boolString(playerPaused));
</ins><span class="cx"> 
</span><span class="cx">     if (shouldBePlaying) {
</span><span class="cx">         setDisplayMode(Video);
</span><span class="lines">@@ -4567,7 +4566,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::userCancelledLoad()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::userCancelledLoad&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::userCancelledLoad(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // FIXME: We should look to reconcile the iOS and non-iOS code (below).
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="lines">@@ -4659,7 +4658,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::stop()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::stop&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::stop(%p)&quot;, this);
</ins><span class="cx">     if (m_isInVideoFullscreen)
</span><span class="cx">         exitFullscreen();
</span><span class="cx">     
</span><span class="lines">@@ -4689,7 +4688,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::suspend(ReasonForSuspension why)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::suspend&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::suspend(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     switch (why)
</span><span class="cx">     {
</span><span class="lines">@@ -4708,7 +4707,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::resume()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::resume&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::resume(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_inActiveDocument = true;
</span><span class="cx"> 
</span><span class="lines">@@ -4739,13 +4738,13 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaVolumeDidChange()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaVolumeDidChange&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaVolumeDidChange(%p)&quot;, this);
</ins><span class="cx">     updateVolume();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::visibilityStateChanged()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::visibilityStateChanged&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::visibilityStateChanged(%p)&quot;, this);
</ins><span class="cx">     m_elementIsHidden = document().hidden();
</span><span class="cx">     updateSleepDisabling();
</span><span class="cx">     m_mediaSession-&gt;visibilityChanged();
</span><span class="lines">@@ -4783,7 +4782,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaPlayerCurrentPlaybackTargetIsWirelessChanged(MediaPlayer*)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaPlayerCurrentPlaybackTargetIsWirelessChanged - webkitCurrentPlaybackTargetIsWireless = %s&quot;, boolString(webkitCurrentPlaybackTargetIsWireless()));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaPlayerCurrentPlaybackTargetIsWirelessChanged(%p) - webkitCurrentPlaybackTargetIsWireless = %s&quot;, this, boolString(webkitCurrentPlaybackTargetIsWireless()));
</ins><span class="cx">     scheduleEvent(eventNames().webkitcurrentplaybacktargetiswirelesschangedEvent);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -4804,7 +4803,7 @@
</span><span class="cx">     if (isFirstAvailabilityChangedListener)
</span><span class="cx">         m_mediaSession-&gt;setHasPlaybackTargetAvailabilityListeners(*this, true);
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::addEventListener('webkitplaybacktargetavailabilitychanged')&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::addEventListener(%p) - 'webkitplaybacktargetavailabilitychanged'&quot;, this);
</ins><span class="cx">     
</span><span class="cx">     enqueuePlaybackTargetAvailabilityChangedEvent(); // Ensure the event listener gets at least one event.
</span><span class="cx">     return true;
</span><span class="lines">@@ -4827,7 +4826,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::enqueuePlaybackTargetAvailabilityChangedEvent()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::enqueuePlaybackTargetAvailabilityChangedEvent&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::enqueuePlaybackTargetAvailabilityChangedEvent(%p)&quot;, this);
</ins><span class="cx">     RefPtr&lt;Event&gt; event = WebKitPlaybackTargetAvailabilityEvent::create(eventNames().webkitplaybacktargetavailabilitychangedEvent, m_mediaSession-&gt;hasWirelessPlaybackTargets(*this));
</span><span class="cx">     event-&gt;setTarget(this);
</span><span class="cx">     m_asyncEventQueue.enqueueEvent(event.release());
</span><span class="lines">@@ -4859,7 +4858,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::toggleFullscreenState()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::toggleFullscreenState - isFullscreen() is %s&quot;, boolString(isFullscreen()));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::toggleFullscreenState(%p) - isFullscreen() is %s&quot;, this, boolString(isFullscreen()));
</ins><span class="cx">     
</span><span class="cx">     if (isFullscreen())
</span><span class="cx">         exitFullscreen();
</span><span class="lines">@@ -4869,7 +4868,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::enterFullscreen()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::enterFullscreen&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::enterFullscreen(%p)&quot;, this);
</ins><span class="cx">     if (m_isInVideoFullscreen)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -4894,7 +4893,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::exitFullscreen()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::exitFullscreen&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::exitFullscreen(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(FULLSCREEN_API)
</span><span class="cx">     if (document().settings() &amp;&amp; document().settings()-&gt;fullScreenEnabled()) {
</span><span class="lines">@@ -5017,7 +5016,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setClosedCaptionsVisible(bool closedCaptionVisible)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setClosedCaptionsVisible(%s)&quot;, boolString(closedCaptionVisible));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setClosedCaptionsVisible(%p) - %s&quot;, this, boolString(closedCaptionVisible));
</ins><span class="cx"> 
</span><span class="cx">     m_closedCaptionsVisible = false;
</span><span class="cx"> 
</span><span class="lines">@@ -5073,7 +5072,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::mediaCanStart()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::mediaCanStart&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::mediaCanStart(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     ASSERT(m_isWaitingUntilMediaCanStart || m_pausedInternal);
</span><span class="cx">     if (m_isWaitingUntilMediaCanStart) {
</span><span class="lines">@@ -5094,7 +5093,7 @@
</span><span class="cx">     if (m_shouldDelayLoadEvent == shouldDelay)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::setShouldDelayLoadEvent(%s)&quot;, boolString(shouldDelay));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::setShouldDelayLoadEvent(%p) - %s&quot;, this, boolString(shouldDelay));
</ins><span class="cx"> 
</span><span class="cx">     m_shouldDelayLoadEvent = shouldDelay;
</span><span class="cx">     if (shouldDelay)
</span><span class="lines">@@ -5130,7 +5129,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     bool privateMode = document().page() &amp;&amp; document().page()-&gt;usesEphemeralSession();
</span><del>-    LOG(Media, &quot;HTMLMediaElement::privateBrowsingStateDidChange(%s)&quot;, boolString(privateMode));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::privateBrowsingStateDidChange(%p) - %s&quot;, this, boolString(privateMode));
</ins><span class="cx">     m_player-&gt;setPrivateBrowsingMode(privateMode);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -5215,7 +5214,7 @@
</span><span class="cx">     if (m_processingPreferenceChange)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::configureTextTrackDisplay&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::configureTextTrackDisplay(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     bool haveVisibleTextTrack = false;
</span><span class="cx">     for (unsigned i = 0; i &lt; m_textTracks-&gt;length(); ++i) {
</span><span class="lines">@@ -5282,7 +5281,7 @@
</span><span class="cx">     if (!m_textTracks)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured(%p)&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     // Mark all tracks as not &quot;configured&quot; so that configureTextTracks()
</span><span class="cx">     // will reconsider which tracks to display in light of new user preferences
</span><span class="lines">@@ -5752,7 +5751,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool HTMLMediaElement::ensureMediaControlsInjectedScript()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::ensureMediaControlsInjectedScript&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::ensureMediaControlsInjectedScript(%p)&quot;, this);
</ins><span class="cx">     Page* page = document().page();
</span><span class="cx">     if (!page)
</span><span class="cx">         return false;
</span><span class="lines">@@ -5795,7 +5794,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::didAddUserAgentShadowRoot(ShadowRoot* root)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::didAddUserAgentShadowRoot&quot;);
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::didAddUserAgentShadowRoot(%p)&quot;, this);
</ins><span class="cx">     Page* page = document().page();
</span><span class="cx">     if (!page)
</span><span class="cx">         return;
</span><span class="lines">@@ -5871,7 +5870,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::setMediaControlsDependOnPageScaleFactor(bool dependsOnPageScale)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;MediaElement::setMediaControlsDependPageScaleFactor = %s&quot;, boolString(dependsOnPageScale));
</del><ins>+    LOG(Media, &quot;MediaElement::setMediaControlsDependPageScaleFactor(%p) = %s&quot;, this, boolString(dependsOnPageScale));
</ins><span class="cx">     if (m_mediaControlsDependOnPageScaleFactor == dependsOnPageScale)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -5889,7 +5888,7 @@
</span><span class="cx">     if (!page)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    LOG(Media, &quot;HTMLMediaElement::pageScaleFactorChanged = %f&quot;, page-&gt;pageScaleFactor());
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::pageScaleFactorChanged(%p) = %f&quot;, this, page-&gt;pageScaleFactor());
</ins><span class="cx">     DOMWrapperWorld&amp; world = ensureIsolatedWorld();
</span><span class="cx">     ScriptController&amp; scriptController = page-&gt;mainFrame().script();
</span><span class="cx">     JSDOMGlobalObject* globalObject = JSC::jsCast&lt;JSDOMGlobalObject*&gt;(scriptController.globalObject(world));
</span><span class="lines">@@ -5938,14 +5937,14 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::pausePlayback()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::pausePlayback - paused = %s&quot;, boolString(paused()));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::pausePlayback(%p) - paused = %s&quot;, this, boolString(paused()));
</ins><span class="cx">     if (!paused())
</span><span class="cx">         pause();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::resumePlayback()
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::resumePlayback - paused = %s&quot;, boolString(paused()));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::resumePlayback(%p) - paused = %s&quot;, this, boolString(paused()));
</ins><span class="cx">     if (paused())
</span><span class="cx">         play();
</span><span class="cx"> }
</span><span class="lines">@@ -5960,7 +5959,7 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLMediaElement::didReceiveRemoteControlCommand(MediaSession::RemoteControlCommandType command)
</span><span class="cx"> {
</span><del>-    LOG(Media, &quot;HTMLMediaElement::didReceiveRemoteControlCommand(%i)&quot;, static_cast&lt;int&gt;(command));
</del><ins>+    LOG(Media, &quot;HTMLMediaElement::didReceiveRemoteControlCommand(%p) - %i&quot;, this, static_cast&lt;int&gt;(command));
</ins><span class="cx"> 
</span><span class="cx">     switch (command) {
</span><span class="cx">     case MediaSession::PlayCommand:
</span></span></pre>
</div>
</div>

</body>
</html>