<!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>[260168] 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/260168">260168</a></dd>
<dt>Author</dt> <dd>andresg_22@apple.com</dd>
<dt>Date</dt> <dd>2020-04-15 19:19:13 -0700 (Wed, 15 Apr 2020)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add logging to core accessibility.
https://bugs.webkit.org/show_bug.cgi?id=210564

Reviewed by Chris Fleizach.

Added AXLogger class and AXTRACE macro. Used them in AXIsolatedTree.

* Headers.cmake:
* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:
* accessibility/AXLogger.cpp: Added.
(WebCore::AXLogger::AXLogger):
(WebCore::AXLogger::~AXLogger):
* accessibility/AXLogger.h: Added.
* accessibility/isolatedtree/AXIsolatedTree.cpp:
(WebCore::AXIsolatedTree::AXIsolatedTree):
(WebCore::AXIsolatedTree::~AXIsolatedTree):
(WebCore::AXIsolatedTree::create):
(WebCore::AXIsolatedTree::nodeInTreeForID):
(WebCore::AXIsolatedTree::treeForID):
(WebCore::AXIsolatedTree::createTreeForPageID):
(WebCore::AXIsolatedTree::removeTreeForPageID):
(WebCore::AXIsolatedTree::treeForPageID):
(WebCore::AXIsolatedTree::nodeForID const):
(WebCore::AXIsolatedTree::objectsForIDs const):
(WebCore::AXIsolatedTree::generateSubtree):
(WebCore::AXIsolatedTree::createSubtree):
(WebCore::AXIsolatedTree::updateNode):
(WebCore::AXIsolatedTree::updateSubtree):
(WebCore::AXIsolatedTree::updateChildren):
(WebCore::AXIsolatedTree::focusedUIElement):
(WebCore::AXIsolatedTree::rootNode):
(WebCore::AXIsolatedTree::setRootNode):
(WebCore::AXIsolatedTree::setFocusedNode):
(WebCore::AXIsolatedTree::setFocusedNodeID):
(WebCore::AXIsolatedTree::removeNode):
(WebCore::AXIsolatedTree::removeSubtree):
(WebCore::AXIsolatedTree::appendNodeChanges):
(WebCore::AXIsolatedTree::applyPendingChanges):
* platform/Logging.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreHeaderscmake">trunk/Source/WebCore/Headers.cmake</a></li>
<li><a href="#trunkSourceWebCoreSourcestxt">trunk/Source/WebCore/Sources.txt</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityisolatedtreeAXIsolatedTreecpp">trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformLoggingh">trunk/Source/WebCore/platform/Logging.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreaccessibilityAXLoggercpp">trunk/Source/WebCore/accessibility/AXLogger.cpp</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAXLoggerh">trunk/Source/WebCore/accessibility/AXLogger.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (260167 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2020-04-16 02:18:09 UTC (rev 260167)
+++ trunk/Source/WebCore/ChangeLog      2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -1,3 +1,46 @@
</span><ins>+2020-04-15  Andres Gonzalez  <andresg_22@apple.com>
+
+        Add logging to core accessibility.
+        https://bugs.webkit.org/show_bug.cgi?id=210564
+
+        Reviewed by Chris Fleizach.
+
+        Added AXLogger class and AXTRACE macro. Used them in AXIsolatedTree.
+
+        * Headers.cmake:
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * accessibility/AXLogger.cpp: Added.
+        (WebCore::AXLogger::AXLogger):
+        (WebCore::AXLogger::~AXLogger):
+        * accessibility/AXLogger.h: Added.
+        * accessibility/isolatedtree/AXIsolatedTree.cpp:
+        (WebCore::AXIsolatedTree::AXIsolatedTree):
+        (WebCore::AXIsolatedTree::~AXIsolatedTree):
+        (WebCore::AXIsolatedTree::create):
+        (WebCore::AXIsolatedTree::nodeInTreeForID):
+        (WebCore::AXIsolatedTree::treeForID):
+        (WebCore::AXIsolatedTree::createTreeForPageID):
+        (WebCore::AXIsolatedTree::removeTreeForPageID):
+        (WebCore::AXIsolatedTree::treeForPageID):
+        (WebCore::AXIsolatedTree::nodeForID const):
+        (WebCore::AXIsolatedTree::objectsForIDs const):
+        (WebCore::AXIsolatedTree::generateSubtree):
+        (WebCore::AXIsolatedTree::createSubtree):
+        (WebCore::AXIsolatedTree::updateNode):
+        (WebCore::AXIsolatedTree::updateSubtree):
+        (WebCore::AXIsolatedTree::updateChildren):
+        (WebCore::AXIsolatedTree::focusedUIElement):
+        (WebCore::AXIsolatedTree::rootNode):
+        (WebCore::AXIsolatedTree::setRootNode):
+        (WebCore::AXIsolatedTree::setFocusedNode):
+        (WebCore::AXIsolatedTree::setFocusedNodeID):
+        (WebCore::AXIsolatedTree::removeNode):
+        (WebCore::AXIsolatedTree::removeSubtree):
+        (WebCore::AXIsolatedTree::appendNodeChanges):
+        (WebCore::AXIsolatedTree::applyPendingChanges):
+        * platform/Logging.h:
+
</ins><span class="cx"> 2020-04-15  Simon Fraser  <simon.fraser@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Lay the groundwork for SynchronousScrollingReason on overflow nodes
</span></span></pre></div>
<a id="trunkSourceWebCoreHeaderscmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Headers.cmake (260167 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Headers.cmake       2020-04-16 02:18:09 UTC (rev 260167)
+++ trunk/Source/WebCore/Headers.cmake  2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -163,6 +163,7 @@
</span><span class="cx">     Modules/websockets/WebSocketFrame.h
</span><span class="cx">     Modules/websockets/WebSocketHandshake.h
</span><span class="cx"> 
</span><ins>+    accessibility/AXLogger.h
</ins><span class="cx">     accessibility/AXObjectCache.h
</span><span class="cx">     accessibility/AXTextStateChangeIntent.h
</span><span class="cx">     accessibility/AccessibilityListBox.h
</span></span></pre></div>
<a id="trunkSourceWebCoreSourcestxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Sources.txt (260167 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Sources.txt 2020-04-16 02:18:09 UTC (rev 260167)
+++ trunk/Source/WebCore/Sources.txt    2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -436,6 +436,7 @@
</span><span class="cx"> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+accessibility/AXLogger.cpp
</ins><span class="cx"> accessibility/AXObjectCache.cpp
</span><span class="cx"> accessibility/AccessibilityARIAGrid.cpp
</span><span class="cx"> accessibility/AccessibilityARIAGridCell.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (260167 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj   2020-04-16 02:18:09 UTC (rev 260167)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj      2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -13586,7 +13586,9 @@
</span><span class="cx">          BEF29EE91715DD0900C4B4C9 /* AudioTrackPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioTrackPrivate.h; sourceTree = "<group>"; };
</span><span class="cx">          BEF29EEA1715DD0900C4B4C9 /* VideoTrackPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VideoTrackPrivate.h; sourceTree = "<group>"; };
</span><span class="cx">          C046E1AB1208A9FE00BA2CF7 /* LocalizedStrings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalizedStrings.cpp; sourceTree = "<group>"; };
</span><ins>+               C0493EB7244699E4009AAC80 /* AXLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AXLogger.h; sourceTree = "<group>"; };
</ins><span class="cx">           C078376023DF253E00C9C5C8 /* AXIsolatedObjectMac.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = AXIsolatedObjectMac.mm; path = mac/AXIsolatedObjectMac.mm; sourceTree = "<group>"; };
</span><ins>+               C08F13A1244766DC00AB989F /* AXLogger.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AXLogger.cpp; sourceTree = "<group>"; };
</ins><span class="cx">           C0E2F3252412BF29009C73EC /* libAccessibility.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libAccessibility.tbd; path = usr/lib/libAccessibility.tbd; sourceTree = SDKROOT; };
</span><span class="cx">          C0F2A43F13869A280066C534 /* preprocessor.pm */ = {isa = PBXFileReference; lastKnownFileType = text.script.perl; name = preprocessor.pm; path = scripts/preprocessor.pm; sourceTree = "<group>"; };
</span><span class="cx">          C105DA610F3AA68F001DD44F /* TextEncodingDetectorICU.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextEncodingDetectorICU.cpp; sourceTree = "<group>"; };
</span><span class="lines">@@ -18011,6 +18013,8 @@
</span><span class="cx">                          A91C9FC01B659A6700AFFD54 /* AccessibilityTreeItem.cpp */,
</span><span class="cx">                          A91C9FC11B659A6700AFFD54 /* AccessibilityTreeItem.h */,
</span><span class="cx">                          A9EE448C210FC9AD00B6EAE6 /* AriaAttributes.idl */,
</span><ins>+                               C08F13A1244766DC00AB989F /* AXLogger.cpp */,
+                               C0493EB7244699E4009AAC80 /* AXLogger.h */,
</ins><span class="cx">                           2981CAAF131822EC00D12F2A /* AXObjectCache.cpp */,
</span><span class="cx">                          29A8121A0FBB9C1D00510293 /* AXObjectCache.h */,
</span><span class="cx">                          91C9F2F81AE3BE240095B61C /* AXTextStateChangeIntent.h */,
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAXLoggercpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/accessibility/AXLogger.cpp (0 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AXLogger.cpp                          (rev 0)
+++ trunk/Source/WebCore/accessibility/AXLogger.cpp     2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ * 3.  Neither the name of Apple Inc. ("Apple") nor the names of
+ *     its contributors may be used to endorse or promote products derived
+ *     from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "AXLogger.h"
+
+#include "Logging.h"
+
+namespace WebCore {
+
+AXLogger::AXLogger(const char* methodName)
+    : m_logger(Logger::create(this))
+    , m_channel(*getLogChannel("Accessibility"))
+    , m_methodName(methodName)
+{
+    m_channel.state = WTFLogChannelState::On;
+    m_channel.level = WTFLogLevel::Debug;
+
+    if (!m_methodName.isEmpty())
+        m_logger->debug(m_channel, m_methodName, " {");
+}
+
+AXLogger::~AXLogger()
+{
+    if (!m_methodName.isEmpty())
+        m_logger->debug(m_channel, "} ", m_methodName);
+}
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAXLoggerh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/accessibility/AXLogger.h (0 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AXLogger.h                            (rev 0)
+++ trunk/Source/WebCore/accessibility/AXLogger.h       2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#include <wtf/Logger.h>
+
+namespace WebCore {
+
+class AXLogger {
+public:
+    AXLogger(const char* methodName);
+    ~AXLogger();
+private:
+    RefPtr<Logger> m_logger;
+    WTFLogChannel& m_channel;
+    String m_methodName;
+};
+
+#ifndef NDEBUG
+#define AXTRACE(methodName) AXLogger axLogger(methodName)
+#else
+#define AXTRACE(methodName)
+#endif // ifndef NDEBUG
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityisolatedtreeAXIsolatedTreecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp (260167 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp       2020-04-16 02:18:09 UTC (rev 260167)
+++ trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp  2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -29,6 +29,7 @@
</span><span class="cx"> #include "AXIsolatedTree.h"
</span><span class="cx"> 
</span><span class="cx"> #include "AXIsolatedObject.h"
</span><ins>+#include "AXLogger.h"
</ins><span class="cx"> #include "Page.h"
</span><span class="cx"> #include <wtf/NeverDestroyed.h>
</span><span class="cx"> 
</span><span class="lines">@@ -69,12 +70,17 @@
</span><span class="cx"> AXIsolatedTree::AXIsolatedTree()
</span><span class="cx">     : m_treeID(newTreeID())
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::AXIsolatedTree");
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-AXIsolatedTree::~AXIsolatedTree() = default;
</del><ins>+AXIsolatedTree::~AXIsolatedTree()
+{
+    AXTRACE("AXIsolatedTree::~AXIsolatedTree");
+}
</ins><span class="cx"> 
</span><span class="cx"> Ref<AXIsolatedTree> AXIsolatedTree::create()
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::create");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     return adoptRef(*new AXIsolatedTree());
</span><span class="cx"> }
</span><span class="lines">@@ -81,16 +87,19 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr<AXIsolatedObject> AXIsolatedTree::nodeInTreeForID(AXIsolatedTreeID treeID, AXID axID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::nodeInTreeForID");
</ins><span class="cx">     return treeForID(treeID)->nodeForID(axID);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr<AXIsolatedTree> AXIsolatedTree::treeForID(AXIsolatedTreeID treeID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::treeForID");
</ins><span class="cx">     return treeIDCache().get(treeID);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ref<AXIsolatedTree> AXIsolatedTree::createTreeForPageID(PageIdentifier pageID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::createTreeForPageID");
</ins><span class="cx">     LockHolder locker(s_cacheLock);
</span><span class="cx">     ASSERT(!treePageCache().contains(pageID));
</span><span class="cx"> 
</span><span class="lines">@@ -102,6 +111,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::removeTreeForPageID(PageIdentifier pageID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::removeTreeForPageID");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     LockHolder locker(s_cacheLock);
</span><span class="cx"> 
</span><span class="lines">@@ -119,6 +129,7 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr<AXIsolatedTree> AXIsolatedTree::treeForPageID(PageIdentifier pageID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::treeForPageID");
</ins><span class="cx">     LockHolder locker(s_cacheLock);
</span><span class="cx"> 
</span><span class="cx">     if (auto tree = treePageCache().get(pageID))
</span><span class="lines">@@ -129,11 +140,13 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr<AXIsolatedObject> AXIsolatedTree::nodeForID(AXID axID) const
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::nodeForID");
</ins><span class="cx">     return axID != InvalidAXID ? m_readerThreadNodeMap.get(axID) : nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Vector<RefPtr<AXCoreObject>> AXIsolatedTree::objectsForIDs(Vector<AXID> axIDs) const
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::objectsForIDs");
</ins><span class="cx">     Vector<RefPtr<AXCoreObject>> result;
</span><span class="cx">     result.reserveCapacity(axIDs.size());
</span><span class="cx"> 
</span><span class="lines">@@ -147,6 +160,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::generateSubtree(AXCoreObject& axObject, AXID parentID, bool attachWrapper)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::generateSubtree");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     Vector<NodeChange> nodeChanges;
</span><span class="cx">     auto object = createSubtree(axObject, parentID, attachWrapper, nodeChanges);
</span><span class="lines">@@ -159,6 +173,7 @@
</span><span class="cx"> 
</span><span class="cx"> Ref<AXIsolatedObject> AXIsolatedTree::createSubtree(AXCoreObject& axObject, AXID parentID, bool attachWrapper, Vector<NodeChange>& nodeChanges)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::createSubtree");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     auto object = AXIsolatedObject::create(axObject, m_treeID, parentID);
</span><span class="cx">     if (attachWrapper) {
</span><span class="lines">@@ -181,6 +196,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::updateNode(AXCoreObject& axObject)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::updateNode");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     AXID axID = axObject.objectID();
</span><span class="cx">     auto* axParent = axObject.parentObject();
</span><span class="lines">@@ -201,6 +217,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::updateSubtree(AXCoreObject& axObject)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::updateSubtree");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     removeSubtree(axObject.objectID());
</span><span class="cx">     auto* axParent = axObject.parentObject();
</span><span class="lines">@@ -210,6 +227,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::updateChildren(AXCoreObject& axObject)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::updateChildren");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     AXID axObjectID = axObject.objectID();
</span><span class="cx"> 
</span><span class="lines">@@ -248,16 +266,19 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr<AXIsolatedObject> AXIsolatedTree::focusedUIElement()
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::focusedUIElement");
</ins><span class="cx">     return nodeForID(m_focusedNodeID);
</span><span class="cx"> }
</span><span class="cx">     
</span><span class="cx"> RefPtr<AXIsolatedObject> AXIsolatedTree::rootNode()
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::rootNode");
</ins><span class="cx">     return nodeForID(m_rootNodeID);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::setRootNode(Ref<AXIsolatedObject>& root)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::setRootNode");
</ins><span class="cx">     LockHolder locker { m_changeLogLock };
</span><span class="cx">     m_rootNodeID = root->objectID();
</span><span class="cx">     m_readerThreadNodeMap.add(root->objectID(), WTFMove(root));
</span><span class="lines">@@ -265,6 +286,7 @@
</span><span class="cx">     
</span><span class="cx"> void AXIsolatedTree::setFocusedNode(AXID axID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::setFocusedNode");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     LockHolder locker { m_changeLogLock };
</span><span class="cx">     m_focusedNodeID = axID;
</span><span class="lines">@@ -286,6 +308,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::setFocusedNodeID(AXID axID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::setFocusedNodeID");
</ins><span class="cx">     LockHolder locker { m_changeLogLock };
</span><span class="cx">     m_pendingFocusedNodeID = axID;
</span><span class="cx"> }
</span><span class="lines">@@ -292,6 +315,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::removeNode(AXID axID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::removeNode");
</ins><span class="cx">     LockHolder locker { m_changeLogLock };
</span><span class="cx">     m_pendingNodeRemovals.append(axID);
</span><span class="cx"> }
</span><span class="lines">@@ -298,6 +322,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::removeSubtree(AXID axID)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::removeSubtree");
</ins><span class="cx">     LockHolder locker { m_changeLogLock };
</span><span class="cx">     m_pendingSubtreeRemovals.append(axID);
</span><span class="cx"> }
</span><span class="lines">@@ -304,6 +329,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::appendNodeChanges(const Vector<NodeChange>& changes)
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::appendNodeChanges");
</ins><span class="cx">     ASSERT(isMainThread());
</span><span class="cx">     m_pendingAppends.appendVector(changes);
</span><span class="cx"> }
</span><span class="lines">@@ -310,6 +336,7 @@
</span><span class="cx"> 
</span><span class="cx"> void AXIsolatedTree::applyPendingChanges()
</span><span class="cx"> {
</span><ins>+    AXTRACE("AXIsolatedTree::applyPendingChanges");
</ins><span class="cx">     RELEASE_ASSERT(!isMainThread());
</span><span class="cx">     LockHolder locker { m_changeLogLock };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLoggingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/Logging.h (260167 => 260168)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/Logging.h  2020-04-16 02:18:09 UTC (rev 260167)
+++ trunk/Source/WebCore/platform/Logging.h     2020-04-16 02:19:13 UTC (rev 260168)
</span><span class="lines">@@ -38,6 +38,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #define WEBCORE_LOG_CHANNELS(M) \
</span><ins>+    M(Accessibility) \
</ins><span class="cx">     M(AdClickAttribution) \
</span><span class="cx">     M(Animations) \
</span><span class="cx">     M(ApplePay) \
</span></span></pre>
</div>
</div>

</body>
</html>