<!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>[209292] 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/209292">209292</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2016-12-02 18:44:49 -0800 (Fri, 02 Dec 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Put names on layers in release builds
https://bugs.webkit.org/show_bug.cgi?id=165347

Reviewed by Tim Horton.

Put names on GraphicsLayers (and therefore CALayers) in release builds. Release names
are a simpler, truncated version of debug names, with &lt;tagname&gt; id class names.

Non-primary layer names converted to lowercase and &quot;layer&quot; removed.

Fix comments that refer to gdb.

Use ENABLE(TREE_DEBUGGING) in more places.

* dom/Node.h:
* dom/Position.h:
* dom/Range.h:
* editing/FrameSelection.h:
* editing/VisiblePosition.h:
* editing/VisibleSelection.h:
* history/HistoryItem.h:
* page/FrameTree.h:
* platform/graphics/GraphicsLayer.h:
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setName):
(WebCore::GraphicsLayerCA::setContentsToSolidColor):
(WebCore::GraphicsLayerCA::updateNames):
(WebCore::GraphicsLayerCA::updateBackdropFilters):
(WebCore::GraphicsLayerCA::updateContentsImage):
(WebCore::GraphicsLayerCA::updateClippingStrategy):
(WebCore::GraphicsLayerCA::updateContentsRects):
(WebCore::GraphicsLayerCA::changeLayerTypeTo):
* platform/graphics/ca/TileController.cpp:
(WebCore::TileController::tileGridContainerLayerName):
(WebCore::TileController::zoomedOutTileGridContainerLayerName):
(WebCore::TileController::createTileLayer):
* rendering/CounterNode.h:
* rendering/InlineBox.h:
* rendering/InlineFlowBox.h:
* rendering/RenderCounter.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::name):
* rendering/RenderLayer.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::createGraphicsLayer):
(WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
(WebCore::RenderLayerBacking::updateAncestorClippingLayer):
(WebCore::RenderLayerBacking::updateDescendantClippingLayer):
(WebCore::RenderLayerBacking::updateForegroundLayer):
(WebCore::RenderLayerBacking::updateBackgroundLayer):
(WebCore::RenderLayerBacking::updateMaskingLayer):
(WebCore::RenderLayerBacking::updateChildClippingStrategy):
(WebCore::RenderLayerBacking::updateScrollingLayers):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea):
(WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea):
(WebCore::RenderLayerCompositor::updateLayerForHeader):
(WebCore::RenderLayerCompositor::updateLayerForFooter):
(WebCore::RenderLayerCompositor::updateOverflowControlsLayers):
(WebCore::RenderLayerCompositor::ensureRootLayer):
* rendering/RenderObject.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomNodeh">trunk/Source/WebCore/dom/Node.h</a></li>
<li><a href="#trunkSourceWebCoredomPositionh">trunk/Source/WebCore/dom/Position.h</a></li>
<li><a href="#trunkSourceWebCoredomRangeh">trunk/Source/WebCore/dom/Range.h</a></li>
<li><a href="#trunkSourceWebCoreeditingFrameSelectionh">trunk/Source/WebCore/editing/FrameSelection.h</a></li>
<li><a href="#trunkSourceWebCoreeditingVisiblePositionh">trunk/Source/WebCore/editing/VisiblePosition.h</a></li>
<li><a href="#trunkSourceWebCoreeditingVisibleSelectionh">trunk/Source/WebCore/editing/VisibleSelection.h</a></li>
<li><a href="#trunkSourceWebCorehistoryHistoryItemh">trunk/Source/WebCore/history/HistoryItem.h</a></li>
<li><a href="#trunkSourceWebCorepageFrameTreeh">trunk/Source/WebCore/page/FrameTree.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsLayerh">trunk/Source/WebCore/platform/graphics/GraphicsLayer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp">trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscaTileControllercpp">trunk/Source/WebCore/platform/graphics/ca/TileController.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingCounterNodeh">trunk/Source/WebCore/rendering/CounterNode.h</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineBoxh">trunk/Source/WebCore/rendering/InlineBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineFlowBoxh">trunk/Source/WebCore/rendering/InlineFlowBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderCounterh">trunk/Source/WebCore/rendering/RenderCounter.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayercpp">trunk/Source/WebCore/rendering/RenderLayer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerh">trunk/Source/WebCore/rendering/RenderLayer.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/Source/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerCompositorcpp">trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderObjecth">trunk/Source/WebCore/rendering/RenderObject.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/ChangeLog        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -1,3 +1,67 @@
</span><ins>+2016-12-02  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        Put names on layers in release builds
+        https://bugs.webkit.org/show_bug.cgi?id=165347
+
+        Reviewed by Tim Horton.
+
+        Put names on GraphicsLayers (and therefore CALayers) in release builds. Release names
+        are a simpler, truncated version of debug names, with &lt;tagname&gt; id class names.
+
+        Non-primary layer names converted to lowercase and &quot;layer&quot; removed.
+
+        Fix comments that refer to gdb.
+
+        Use ENABLE(TREE_DEBUGGING) in more places.
+
+        * dom/Node.h:
+        * dom/Position.h:
+        * dom/Range.h:
+        * editing/FrameSelection.h:
+        * editing/VisiblePosition.h:
+        * editing/VisibleSelection.h:
+        * history/HistoryItem.h:
+        * page/FrameTree.h:
+        * platform/graphics/GraphicsLayer.h:
+        * platform/graphics/ca/GraphicsLayerCA.cpp:
+        (WebCore::GraphicsLayerCA::setName):
+        (WebCore::GraphicsLayerCA::setContentsToSolidColor):
+        (WebCore::GraphicsLayerCA::updateNames):
+        (WebCore::GraphicsLayerCA::updateBackdropFilters):
+        (WebCore::GraphicsLayerCA::updateContentsImage):
+        (WebCore::GraphicsLayerCA::updateClippingStrategy):
+        (WebCore::GraphicsLayerCA::updateContentsRects):
+        (WebCore::GraphicsLayerCA::changeLayerTypeTo):
+        * platform/graphics/ca/TileController.cpp:
+        (WebCore::TileController::tileGridContainerLayerName):
+        (WebCore::TileController::zoomedOutTileGridContainerLayerName):
+        (WebCore::TileController::createTileLayer):
+        * rendering/CounterNode.h:
+        * rendering/InlineBox.h:
+        * rendering/InlineFlowBox.h:
+        * rendering/RenderCounter.h:
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::name):
+        * rendering/RenderLayer.h:
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::createGraphicsLayer):
+        (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
+        (WebCore::RenderLayerBacking::updateAncestorClippingLayer):
+        (WebCore::RenderLayerBacking::updateDescendantClippingLayer):
+        (WebCore::RenderLayerBacking::updateForegroundLayer):
+        (WebCore::RenderLayerBacking::updateBackgroundLayer):
+        (WebCore::RenderLayerBacking::updateMaskingLayer):
+        (WebCore::RenderLayerBacking::updateChildClippingStrategy):
+        (WebCore::RenderLayerBacking::updateScrollingLayers):
+        * rendering/RenderLayerCompositor.cpp:
+        (WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea):
+        (WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea):
+        (WebCore::RenderLayerCompositor::updateLayerForHeader):
+        (WebCore::RenderLayerCompositor::updateLayerForFooter):
+        (WebCore::RenderLayerCompositor::updateOverflowControlsLayers):
+        (WebCore::RenderLayerCompositor::ensureRootLayer):
+        * rendering/RenderObject.h:
+
</ins><span class="cx"> 2016-12-02  Antoine Quint  &lt;graouts@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Modern Media Controls] Update the media controls size as the media element is resized
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/dom/Node.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -781,7 +781,7 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::Node*);
</span><span class="cx"> void showNodePath(const WebCore::Node*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoredomPositionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Position.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Position.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/dom/Position.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -349,7 +349,7 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::Position&amp;);
</span><span class="cx"> void showTree(const WebCore::Position*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoredomRangeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Range.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Range.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/dom/Range.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -183,6 +183,6 @@
</span><span class="cx"> } // namespace
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::Range*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingFrameSelectionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/FrameSelection.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/FrameSelection.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/editing/FrameSelection.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -379,7 +379,7 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::FrameSelection&amp;);
</span><span class="cx"> void showTree(const WebCore::FrameSelection*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisiblePositionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisiblePosition.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisiblePosition.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/editing/VisiblePosition.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::VisiblePosition*);
</span><span class="cx"> void showTree(const WebCore::VisiblePosition&amp;);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisibleSelectionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisibleSelection.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisibleSelection.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/editing/VisibleSelection.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::VisibleSelection&amp;);
</span><span class="cx"> void showTree(const WebCore::VisibleSelection*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorehistoryHistoryItemh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/history/HistoryItem.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/history/HistoryItem.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/history/HistoryItem.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -267,7 +267,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+#if ENABLE(TREE_DEBUGGING)
+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> extern &quot;C&quot; int showTree(const WebCore::HistoryItem*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameTreeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameTree.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameTree.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/page/FrameTree.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -109,7 +109,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+#if ENABLE(TREE_DEBUGGING)
+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> WEBCORE_EXPORT void showFrameTree(const WebCore::Frame*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsLayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayer.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsLayer.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayer.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -680,7 +680,7 @@
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_END()
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -451,13 +451,17 @@
</span><span class="cx"> 
</span><span class="cx"> void GraphicsLayerCA::setName(const String&amp; name)
</span><span class="cx"> {
</span><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     String caLayerDescription;
</span><span class="cx"> 
</span><span class="cx">     if (!m_layer-&gt;isPlatformCALayerRemote())
</span><span class="cx">         caLayerDescription = String::format(&quot;CALayer(%p) &quot;, m_layer-&gt;platformLayer());
</span><span class="cx"> 
</span><del>-    String longName = caLayerDescription + String::format(&quot;GraphicsLayer(%p, %llu) &quot;, this, primaryLayerID()) + name;
-    GraphicsLayer::setName(longName);
</del><ins>+    GraphicsLayer::setName(caLayerDescription + String::format(&quot;GraphicsLayer(%p, %llu) &quot;, this, primaryLayerID()) + name);
+#else
+    GraphicsLayer::setName(name);
+#endif
+
</ins><span class="cx">     noteLayerPropertyChanged(NameChanged);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1008,8 +1012,10 @@
</span><span class="cx">         if (!m_contentsLayer || m_contentsLayerPurpose != ContentsLayerForBackgroundColor) {
</span><span class="cx">             m_contentsLayerPurpose = ContentsLayerForBackgroundColor;
</span><span class="cx">             m_contentsLayer = createPlatformCALayer(PlatformCALayer::LayerTypeLayer, this);
</span><del>-#ifndef NDEBUG
-            m_contentsLayer-&gt;setName(String::format(&quot;Background Color Layer %llu&quot;, m_contentsLayer-&gt;layerID()));
</del><ins>+#if ENABLE(TREE_DEBUGGING)
+            m_contentsLayer-&gt;setName(String::format(&quot;contents color %llu&quot;, m_contentsLayer-&gt;layerID()));
+#else
+            m_contentsLayer-&gt;setName(&quot;contents color&quot;);
</ins><span class="cx"> #endif
</span><span class="cx">             contentsLayerChanged = true;
</span><span class="cx">         }
</span><span class="lines">@@ -1703,13 +1709,13 @@
</span><span class="cx"> {
</span><span class="cx">     switch (structuralLayerPurpose()) {
</span><span class="cx">     case StructuralLayerForPreserves3D:
</span><del>-        m_structuralLayer-&gt;setName(&quot;Transform layer &quot; + name());
</del><ins>+        m_structuralLayer-&gt;setName(&quot;preserve-3d: &quot; + name());
</ins><span class="cx">         break;
</span><span class="cx">     case StructuralLayerForReplicaFlattening:
</span><del>-        m_structuralLayer-&gt;setName(&quot;Replica flattening layer &quot; + name());
</del><ins>+        m_structuralLayer-&gt;setName(&quot;replica flattening: &quot; + name());
</ins><span class="cx">         break;
</span><span class="cx">     case StructuralLayerForBackdrop:
</span><del>-        m_structuralLayer-&gt;setName(&quot;Backdrop hosting layer &quot; + name());
</del><ins>+        m_structuralLayer-&gt;setName(&quot;backdrop hosting: &quot; + name());
</ins><span class="cx">         break;
</span><span class="cx">     case NoStructuralLayer:
</span><span class="cx">         break;
</span><span class="lines">@@ -1973,6 +1979,7 @@
</span><span class="cx">         m_backdropLayer = createPlatformCALayer(PlatformCALayer::LayerTypeBackdropLayer, this);
</span><span class="cx">         m_backdropLayer-&gt;setAnchorPoint(FloatPoint3D());
</span><span class="cx">         m_backdropLayer-&gt;setMasksToBounds(true);
</span><ins>+        m_backdropLayer-&gt;setName(&quot;backdrop&quot;);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     m_backdropLayer-&gt;setHidden(!m_contentsVisible);
</span><span class="lines">@@ -2321,8 +2328,10 @@
</span><span class="cx">     if (m_pendingContentsImage) {
</span><span class="cx">         if (!m_contentsLayer.get()) {
</span><span class="cx">             m_contentsLayer = createPlatformCALayer(PlatformCALayer::LayerTypeLayer, this);
</span><del>-#ifndef NDEBUG
-            m_contentsLayer-&gt;setName(String::format(&quot;Image Layer %llu&quot;, m_contentsLayer-&gt;layerID()));
</del><ins>+#if ENABLE(TREE_DEBUGGING)
+            m_contentsLayer-&gt;setName(String::format(&quot;contents image %llu&quot;, m_contentsLayer-&gt;layerID()));
+#else
+            m_contentsLayer-&gt;setName(&quot;contents image&quot;);
</ins><span class="cx"> #endif
</span><span class="cx">             setupContentsLayer(m_contentsLayer.get());
</span><span class="cx">             // m_contentsLayer will be parented by updateSublayerList
</span><span class="lines">@@ -2398,6 +2407,7 @@
</span><span class="cx">     if (!shapeMaskLayer) {
</span><span class="cx">         shapeMaskLayer = createPlatformCALayer(PlatformCALayer::LayerTypeShapeLayer, this);
</span><span class="cx">         shapeMaskLayer-&gt;setAnchorPoint(FloatPoint3D());
</span><ins>+        shapeMaskLayer-&gt;setName(&quot;shape mask&quot;);
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     shapeMaskLayer-&gt;setPosition(FloatPoint());
</span><span class="lines">@@ -2426,8 +2436,10 @@
</span><span class="cx">         if (!m_contentsClippingLayer) {
</span><span class="cx">             m_contentsClippingLayer = createPlatformCALayer(PlatformCALayer::LayerTypeLayer, this);
</span><span class="cx">             m_contentsClippingLayer-&gt;setAnchorPoint(FloatPoint());
</span><del>-#ifndef NDEBUG
-            m_contentsClippingLayer-&gt;setName(String::format(&quot;Contents Clipping Layer %llu&quot;, m_contentsClippingLayer-&gt;layerID()));
</del><ins>+#if ENABLE(TREE_DEBUGGING)
+            m_contentsClippingLayer-&gt;setName(String::format(&quot;contents clipping %llu&quot;, m_contentsClippingLayer-&gt;layerID()));
+#else
+            m_contentsClippingLayer-&gt;setName(&quot;contents clipping&quot;);
</ins><span class="cx"> #endif
</span><span class="cx">             gainedOrLostClippingLayer = true;
</span><span class="cx">         }
</span><span class="lines">@@ -3586,16 +3598,12 @@
</span><span class="cx">         | BackdropFiltersChanged
</span><span class="cx">         | MaskLayerChanged
</span><span class="cx">         | OpacityChanged
</span><ins>+        | NameChanged
</ins><span class="cx">         | DebugIndicatorsChanged;
</span><span class="cx">     
</span><span class="cx">     if (m_usingTiledBacking)
</span><span class="cx">         m_uncommittedChanges |= CoverageRectChanged;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
-    String name = String::format(&quot;%sCALayer(%p) GraphicsLayer(%p, %llu) &quot;, (newLayerType == PlatformCALayer::LayerTypeWebTiledLayer) ? &quot;Tiled &quot; : &quot;&quot;, m_layer-&gt;platformLayer(), this, primaryLayerID()) + m_name;
-    m_layer-&gt;setName(name);
-#endif
-
</del><span class="cx">     moveAnimations(oldLayer.get(), m_layer.get());
</span><span class="cx">     
</span><span class="cx">     // need to tell new layer to draw itself
</span><span class="lines">@@ -3647,8 +3655,10 @@
</span><span class="cx">         resultLayer = addResult.iterator-&gt;value.get();
</span><span class="cx">     } else {
</span><span class="cx">         resultLayer = cloneLayer(sourceLayer, cloneLevel);
</span><del>-#ifndef NDEBUG
-        resultLayer-&gt;setName(String::format(&quot;Clone %d of layer %llu&quot;, cloneID[0U], sourceLayer-&gt;layerID()));
</del><ins>+#if ENABLE(TREE_DEBUGGING)
+        resultLayer-&gt;setName(String::format(&quot;clone %d of %llu&quot;, cloneID[0U], sourceLayer-&gt;layerID()));
+#else
+        resultLayer-&gt;setName(&quot;clone of &quot; + m_name);
</ins><span class="cx"> #endif
</span><span class="cx">         addResult.iterator-&gt;value = resultLayer;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscaTileControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/TileController.cpp (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/TileController.cpp        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/platform/graphics/ca/TileController.cpp        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -53,12 +53,12 @@
</span><span class="cx"> 
</span><span class="cx"> String TileController::tileGridContainerLayerName()
</span><span class="cx"> {
</span><del>-    return ASCIILiteral(&quot;TileGrid Container Layer&quot;);
</del><ins>+    return ASCIILiteral(&quot;TileGrid container&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String TileController::zoomedOutTileGridContainerLayerName()
</span><span class="cx"> {
</span><del>-    return ASCIILiteral(&quot;Zoomed Out TileGrid Container Layer&quot;);
</del><ins>+    return ASCIILiteral(&quot;Zoomed-out TileGrid container&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> TileController::TileController(PlatformCALayer* rootPlatformLayer)
</span><span class="lines">@@ -702,10 +702,14 @@
</span><span class="cx">     layer-&gt;setBorderWidth(m_tileDebugBorderWidth);
</span><span class="cx">     layer-&gt;setEdgeAntialiasingMask(0);
</span><span class="cx">     layer-&gt;setOpaque(m_tilesAreOpaque);
</span><del>-#ifndef NDEBUG
-    layer-&gt;setName(&quot;Tile&quot;);
-#endif
</del><span class="cx"> 
</span><ins>+    StringBuilder nameBuilder;
+    nameBuilder.append(&quot;tile at &quot;);
+    nameBuilder.appendNumber(tileRect.location().x());
+    nameBuilder.append(',');
+    nameBuilder.appendNumber(tileRect.location().y());
+    layer-&gt;setName(nameBuilder.toString());
+
</ins><span class="cx">     float temporaryScaleFactor = owningGraphicsLayer()-&gt;platformCALayerContentsScaleMultiplierForNewTiles(m_tileCacheLayer);
</span><span class="cx">     m_hasTilesWithTemporaryScaleFactor |= temporaryScaleFactor != 1;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingCounterNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/CounterNode.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/CounterNode.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/CounterNode.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -92,6 +92,6 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showCounterTree(const WebCore::CounterNode*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineBox.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineBox.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/InlineBox.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -454,7 +454,7 @@
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_END()
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showNodeTree(const WebCore::InlineBox*);
</span><span class="cx"> void showLineTree(const WebCore::InlineBox*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineFlowBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineFlowBox.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineFlowBox.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/InlineFlowBox.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -374,6 +374,6 @@
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_INLINE_BOX(InlineFlowBox, isInlineFlowBox())
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showTree(const WebCore::InlineFlowBox*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderCounterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderCounter.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderCounter.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/RenderCounter.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -59,6 +59,6 @@
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderCounter, isCounter())
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showCounterRendererTree(const WebCore::RenderObject*, const char* counterName = nullptr);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -386,11 +386,11 @@
</span><span class="cx"> String RenderLayer::name() const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder name;
</span><del>-    name.append(renderer().renderName());
</del><span class="cx"> 
</span><span class="cx">     if (Element* element = renderer().element()) {
</span><del>-        name.append(' ');
-        name.append(element-&gt;tagName());
</del><ins>+        name.append(&quot; &lt;&quot;);
+        name.append(element-&gt;tagName().convertToLowercaseWithoutLocale());
+        name.append('&gt;');
</ins><span class="cx"> 
</span><span class="cx">         if (element-&gt;hasID()) {
</span><span class="cx">             name.appendLiteral(&quot; id=\'&quot;);
</span><span class="lines">@@ -400,14 +400,25 @@
</span><span class="cx"> 
</span><span class="cx">         if (element-&gt;hasClass()) {
</span><span class="cx">             name.appendLiteral(&quot; class=\'&quot;);
</span><del>-            for (size_t i = 0; i &lt; element-&gt;classNames().size(); ++i) {
</del><ins>+            size_t classNamesToDump = element-&gt;classNames().size();
+            const size_t maxNumClassNames = 7;
+            bool addEllipsis = false;
+            if (classNamesToDump &gt; maxNumClassNames) {
+                classNamesToDump = maxNumClassNames;
+                addEllipsis = true;
+            }
+            
+            for (size_t i = 0; i &lt; classNamesToDump; ++i) {
</ins><span class="cx">                 if (i &gt; 0)
</span><span class="cx">                     name.append(' ');
</span><span class="cx">                 name.append(element-&gt;classNames()[i]);
</span><span class="cx">             }
</span><ins>+            if (addEllipsis)
+                name.append(&quot;...&quot;);
</ins><span class="cx">             name.append('\'');
</span><span class="cx">         }
</span><del>-    }
</del><ins>+    } else
+        name.append(renderer().renderName());
</ins><span class="cx"> 
</span><span class="cx">     if (isReflection())
</span><span class="cx">         name.appendLiteral(&quot; (reflection)&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/RenderLayer.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -1198,7 +1198,7 @@
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from lldb.
</ins><span class="cx"> void showLayerTree(const WebCore::RenderLayer*);
</span><span class="cx"> void showLayerTree(const WebCore::RenderObject*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -169,11 +169,8 @@
</span><span class="cx"> 
</span><span class="cx">     std::unique_ptr&lt;GraphicsLayer&gt; graphicsLayer = GraphicsLayer::create(graphicsLayerFactory, *this, layerType);
</span><span class="cx"> 
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">     graphicsLayer-&gt;setName(name);
</span><del>-#else
-    UNUSED_PARAM(name);
-#endif
</del><ins>+
</ins><span class="cx"> #if PLATFORM(COCOA) &amp;&amp; USE(CA)
</span><span class="cx">     graphicsLayer-&gt;setAcceleratesDrawing(compositor().acceleratedDrawingEnabled());
</span><span class="cx">     graphicsLayer-&gt;setUsesDisplayListDrawing(compositor().displayListDrawingEnabled());
</span><span class="lines">@@ -299,15 +296,16 @@
</span><span class="cx"> 
</span><span class="cx"> void RenderLayerBacking::createPrimaryGraphicsLayer()
</span><span class="cx"> {
</span><del>-    String layerName;
-#if ENABLE(TREE_DEBUGGING)
-    layerName = m_owningLayer.name();
-#endif
-    
</del><ins>+    String layerName = m_owningLayer.name();
+    const unsigned maxLayerNameLength = 100;
+    if (layerName.length() &gt; maxLayerNameLength) {
+        layerName.truncate(maxLayerNameLength);
+        layerName.append(&quot;...&quot;);
+    }
</ins><span class="cx">     m_graphicsLayer = createGraphicsLayer(layerName, m_usingTiledCacheLayer ? GraphicsLayer::Type::PageTiledBacking : GraphicsLayer::Type::Normal);
</span><span class="cx"> 
</span><span class="cx">     if (m_usingTiledCacheLayer) {
</span><del>-        m_childContainmentLayer = createGraphicsLayer(&quot;TiledBacking Flattening Layer&quot;);
</del><ins>+        m_childContainmentLayer = createGraphicsLayer(&quot;TiledBacking containment&quot;);
</ins><span class="cx">         m_graphicsLayer-&gt;addChild(m_childContainmentLayer.get());
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -1328,7 +1326,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (needsAncestorClip) {
</span><span class="cx">         if (!m_ancestorClippingLayer) {
</span><del>-            m_ancestorClippingLayer = createGraphicsLayer(&quot;Ancestor clipping Layer&quot;);
</del><ins>+            m_ancestorClippingLayer = createGraphicsLayer(&quot;ancestor clipping&quot;);
</ins><span class="cx">             m_ancestorClippingLayer-&gt;setMasksToBounds(true);
</span><span class="cx">             layersChanged = true;
</span><span class="cx">         }
</span><span class="lines">@@ -1349,7 +1347,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (needsDescendantClip) {
</span><span class="cx">         if (!m_childContainmentLayer &amp;&amp; !m_usingTiledCacheLayer) {
</span><del>-            m_childContainmentLayer = createGraphicsLayer(&quot;Child clipping Layer&quot;);
</del><ins>+            m_childContainmentLayer = createGraphicsLayer(&quot;child clipping&quot;);
</ins><span class="cx">             m_childContainmentLayer-&gt;setMasksToBounds(true);
</span><span class="cx">             layersChanged = true;
</span><span class="cx">         }
</span><span class="lines">@@ -1499,10 +1497,7 @@
</span><span class="cx">     bool layerChanged = false;
</span><span class="cx">     if (needsForegroundLayer) {
</span><span class="cx">         if (!m_foregroundLayer) {
</span><del>-            String layerName;
-#if ENABLE(TREE_DEBUGGING)
-            layerName = m_owningLayer.name() + &quot; (foreground)&quot;;
-#endif
</del><ins>+            String layerName = m_owningLayer.name() + &quot; (foreground)&quot;;
</ins><span class="cx">             m_foregroundLayer = createGraphicsLayer(layerName);
</span><span class="cx">             m_foregroundLayer-&gt;setDrawsContent(true);
</span><span class="cx">             m_foregroundLayer-&gt;setPaintingPhase(GraphicsLayerPaintForeground);
</span><span class="lines">@@ -1528,10 +1523,7 @@
</span><span class="cx">     bool layerChanged = false;
</span><span class="cx">     if (needsBackgroundLayer) {
</span><span class="cx">         if (!m_backgroundLayer) {
</span><del>-            String layerName;
-#if ENABLE(TREE_DEBUGGING)
-            layerName = m_owningLayer.name() + &quot; (background)&quot;;
-#endif
</del><ins>+            String layerName = m_owningLayer.name() + &quot; (background)&quot;;
</ins><span class="cx">             m_backgroundLayer = createGraphicsLayer(layerName);
</span><span class="cx">             m_backgroundLayer-&gt;setDrawsContent(true);
</span><span class="cx">             m_backgroundLayer-&gt;setAnchorPoint(FloatPoint3D());
</span><span class="lines">@@ -1540,10 +1532,7 @@
</span><span class="cx">         }
</span><span class="cx">         
</span><span class="cx">         if (!m_contentsContainmentLayer) {
</span><del>-            String layerName;
-#if ENABLE(TREE_DEBUGGING)
-            layerName = m_owningLayer.name() + &quot; (contents containment)&quot;;
-#endif
</del><ins>+            String layerName = m_owningLayer.name() + &quot; (contents containment)&quot;;
</ins><span class="cx">             m_contentsContainmentLayer = createGraphicsLayer(layerName);
</span><span class="cx">             m_contentsContainmentLayer-&gt;setAppliesPageScale(true);
</span><span class="cx">             m_graphicsLayer-&gt;setAppliesPageScale(false);
</span><span class="lines">@@ -1598,7 +1587,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if (!m_maskLayer) {
</span><del>-            m_maskLayer = createGraphicsLayer(&quot;Mask&quot;, requiredLayerType);
</del><ins>+            m_maskLayer = createGraphicsLayer(&quot;mask&quot;, requiredLayerType);
</ins><span class="cx">             m_maskLayer-&gt;setDrawsContent(paintsContent);
</span><span class="cx">             m_maskLayer-&gt;setPaintingPhase(maskPhases);
</span><span class="cx">             layerChanged = true;
</span><span class="lines">@@ -1630,7 +1619,7 @@
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if (!m_childClippingMaskLayer) {
</span><del>-                m_childClippingMaskLayer = createGraphicsLayer(&quot;Child Clipping Mask Layer&quot;);
</del><ins>+                m_childClippingMaskLayer = createGraphicsLayer(&quot;child clipping mask&quot;);
</ins><span class="cx">                 m_childClippingMaskLayer-&gt;setDrawsContent(true);
</span><span class="cx">                 m_childClippingMaskLayer-&gt;setPaintingPhase(GraphicsLayerPaintChildClippingMask);
</span><span class="cx">                 clippingLayer()-&gt;setMaskLayer(m_childClippingMaskLayer.get());
</span><span class="lines">@@ -1654,12 +1643,12 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_scrollingLayer) {
</span><span class="cx">         // Outer layer which corresponds with the scroll view.
</span><del>-        m_scrollingLayer = createGraphicsLayer(&quot;Scrolling container&quot;, GraphicsLayer::Type::Scrolling);
</del><ins>+        m_scrollingLayer = createGraphicsLayer(&quot;scrolling container&quot;, GraphicsLayer::Type::Scrolling);
</ins><span class="cx">         m_scrollingLayer-&gt;setDrawsContent(false);
</span><span class="cx">         m_scrollingLayer-&gt;setMasksToBounds(true);
</span><span class="cx"> 
</span><span class="cx">         // Inner layer which renders the content that scrolls.
</span><del>-        m_scrollingContentsLayer = createGraphicsLayer(&quot;Scrolled Contents&quot;);
</del><ins>+        m_scrollingContentsLayer = createGraphicsLayer(&quot;scrolled Contents&quot;);
</ins><span class="cx">         m_scrollingContentsLayer-&gt;setDrawsContent(true);
</span><span class="cx"> 
</span><span class="cx">         GraphicsLayerPaintingPhase paintPhase = GraphicsLayerPaintOverflowContents | GraphicsLayerPaintCompositedScroll;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerCompositorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -3075,9 +3075,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForTopOverhangArea) {
</span><span class="cx">         m_layerForTopOverhangArea = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
-        m_layerForTopOverhangArea-&gt;setName(&quot;top overhang area&quot;);
-#endif
</del><ins>+        m_layerForTopOverhangArea-&gt;setName(&quot;top overhang&quot;);
</ins><span class="cx">         m_scrollLayer-&gt;addChildBelow(m_layerForTopOverhangArea.get(), m_rootContentLayer.get());
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -3099,9 +3097,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForBottomOverhangArea) {
</span><span class="cx">         m_layerForBottomOverhangArea = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
-        m_layerForBottomOverhangArea-&gt;setName(&quot;bottom overhang area&quot;);
-#endif
</del><ins>+        m_layerForBottomOverhangArea-&gt;setName(&quot;bottom overhang&quot;);
</ins><span class="cx">         m_scrollLayer-&gt;addChildBelow(m_layerForBottomOverhangArea.get(), m_rootContentLayer.get());
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -3130,9 +3126,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForHeader) {
</span><span class="cx">         m_layerForHeader = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">         m_layerForHeader-&gt;setName(&quot;header&quot;);
</span><del>-#endif
</del><span class="cx">         m_scrollLayer-&gt;addChildAbove(m_layerForHeader.get(), m_rootContentLayer.get());
</span><span class="cx">         m_renderView.frameView().addPaintPendingMilestones(DidFirstFlushForHeaderLayer);
</span><span class="cx">     }
</span><span class="lines">@@ -3171,9 +3165,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForFooter) {
</span><span class="cx">         m_layerForFooter = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">         m_layerForFooter-&gt;setName(&quot;footer&quot;);
</span><del>-#endif
</del><span class="cx">         m_scrollLayer-&gt;addChildAbove(m_layerForFooter.get(), m_rootContentLayer.get());
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -3278,9 +3270,7 @@
</span><span class="cx">     if (requiresOverhangAreasLayer()) {
</span><span class="cx">         if (!m_layerForOverhangAreas) {
</span><span class="cx">             m_layerForOverhangAreas = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_layerForOverhangAreas-&gt;setName(&quot;overhang areas&quot;);
</span><del>-#endif
</del><span class="cx">             m_layerForOverhangAreas-&gt;setDrawsContent(false);
</span><span class="cx"> 
</span><span class="cx">             float topContentInset = m_renderView.frameView().topContentInset();
</span><span class="lines">@@ -3307,9 +3297,7 @@
</span><span class="cx">     if (requiresContentShadowLayer()) {
</span><span class="cx">         if (!m_contentShadowLayer) {
</span><span class="cx">             m_contentShadowLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_contentShadowLayer-&gt;setName(&quot;content shadow&quot;);
</span><del>-#endif
</del><span class="cx">             m_contentShadowLayer-&gt;setSize(m_rootContentLayer-&gt;size());
</span><span class="cx">             m_contentShadowLayer-&gt;setPosition(m_rootContentLayer-&gt;position());
</span><span class="cx">             m_contentShadowLayer-&gt;setAnchorPoint(FloatPoint3D());
</span><span class="lines">@@ -3327,10 +3315,7 @@
</span><span class="cx">         if (!m_layerForHorizontalScrollbar) {
</span><span class="cx">             m_layerForHorizontalScrollbar = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><span class="cx">             m_layerForHorizontalScrollbar-&gt;setShowDebugBorder(m_showDebugBorders);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_layerForHorizontalScrollbar-&gt;setName(&quot;horizontal scrollbar container&quot;);
</span><del>-
-#endif
</del><span class="cx"> #if PLATFORM(COCOA) &amp;&amp; USE(CA)
</span><span class="cx">             m_layerForHorizontalScrollbar-&gt;setAcceleratesDrawing(acceleratedDrawingEnabled());
</span><span class="cx"> #endif
</span><span class="lines">@@ -3351,9 +3336,7 @@
</span><span class="cx">         if (!m_layerForVerticalScrollbar) {
</span><span class="cx">             m_layerForVerticalScrollbar = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><span class="cx">             m_layerForVerticalScrollbar-&gt;setShowDebugBorder(m_showDebugBorders);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_layerForVerticalScrollbar-&gt;setName(&quot;vertical scrollbar container&quot;);
</span><del>-#endif
</del><span class="cx"> #if PLATFORM(COCOA) &amp;&amp; USE(CA)
</span><span class="cx">             m_layerForVerticalScrollbar-&gt;setAcceleratesDrawing(acceleratedDrawingEnabled());
</span><span class="cx"> #endif
</span><span class="lines">@@ -3374,9 +3357,7 @@
</span><span class="cx">         if (!m_layerForScrollCorner) {
</span><span class="cx">             m_layerForScrollCorner = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><span class="cx">             m_layerForScrollCorner-&gt;setShowDebugBorder(m_showDebugBorders);
</span><del>-#ifndef NDEBUG
</del><span class="cx">             m_layerForScrollCorner-&gt;setName(&quot;scroll corner&quot;);
</span><del>-#endif
</del><span class="cx"> #if PLATFORM(COCOA) &amp;&amp; USE(CA)
</span><span class="cx">             m_layerForScrollCorner-&gt;setAcceleratesDrawing(acceleratedDrawingEnabled());
</span><span class="cx"> #endif
</span><span class="lines">@@ -3398,9 +3379,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_rootContentLayer) {
</span><span class="cx">         m_rootContentLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">         m_rootContentLayer-&gt;setName(&quot;content root&quot;);
</span><del>-#endif
</del><span class="cx">         IntRect overflowRect = snappedIntRect(m_renderView.layoutOverflowRect());
</span><span class="cx">         m_rootContentLayer-&gt;setSize(FloatSize(overflowRect.maxX(), overflowRect.maxY()));
</span><span class="cx">         m_rootContentLayer-&gt;setPosition(FloatPoint());
</span><span class="lines">@@ -3423,21 +3402,16 @@
</span><span class="cx"> 
</span><span class="cx">             // Create a layer to host the clipping layer and the overflow controls layers.
</span><span class="cx">             m_overflowControlsHostLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_overflowControlsHostLayer-&gt;setName(&quot;overflow controls host&quot;);
</span><del>-#endif
</del><span class="cx"> 
</span><span class="cx">             // Create a clipping layer if this is an iframe
</span><span class="cx">             m_clipLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_clipLayer-&gt;setName(&quot;frame clipping&quot;);
</span><del>-#endif
</del><span class="cx">             m_clipLayer-&gt;setMasksToBounds(true);
</span><span class="cx">             
</span><span class="cx">             m_scrollLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#if ENABLE(TREE_DEBUGGING)
</del><span class="cx">             m_scrollLayer-&gt;setName(&quot;frame scrolling&quot;);
</span><del>-#endif
</del><ins>+
</ins><span class="cx">             // Hook them up
</span><span class="cx">             m_overflowControlsHostLayer-&gt;addChild(m_clipLayer.get());
</span><span class="cx">             m_clipLayer-&gt;addChild(m_scrollLayer.get());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderObject.h (209291 => 209292)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderObject.h        2016-12-03 02:40:30 UTC (rev 209291)
+++ trunk/Source/WebCore/rendering/RenderObject.h        2016-12-03 02:44:49 UTC (rev 209292)
</span><span class="lines">@@ -1112,7 +1112,7 @@
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_END()
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><del>-// Outside the WebCore namespace for ease of invocation from gdb.
</del><ins>+// Outside the WebCore namespace for ease of invocation from the debugger.
</ins><span class="cx"> void showNodeTree(const WebCore::RenderObject*);
</span><span class="cx"> void showLineTree(const WebCore::RenderObject*);
</span><span class="cx"> void showRenderTree(const WebCore::RenderObject*);
</span></span></pre>
</div>
</div>

</body>
</html>