<!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>[181166] trunk/Source</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/181166">181166</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2015-03-06 10:20:40 -0800 (Fri, 06 Mar 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Allow tree dumping functions to be used in release builds by switching a flag
https://bugs.webkit.org/show_bug.cgi?id=142379

Reviewed by Zalan Bujtas.

There are various tree dumping functions that are useful for debugging, and sometimes
you want to be able to use them in release builds. Currently they are surrounded by
in config.h

* config.h:
* dom/DocumentMarkerController.cpp:
* dom/DocumentMarkerController.h:
* dom/Element.cpp:
* dom/Element.h:
* dom/Node.cpp:
* dom/Node.h:
* dom/Position.cpp: Position::debugPosition(const char* msg) was available in release builds, but this changes
is to respect ENABLE_TREE_DEBUGGING, which I think is correct.
* dom/Position.h:
* dom/Range.cpp:
* dom/Range.h:
* dom/Text.cpp:
* dom/Text.h:
* rendering/CounterNode.cpp:
* rendering/CounterNode.h:
* rendering/InlineBox.cpp:
* rendering/InlineBox.h:
* rendering/InlineFlowBox.cpp:
* rendering/InlineFlowBox.h:
* rendering/InlineTextBox.cpp:
* rendering/InlineTextBox.h:
* rendering/RenderBlockFlow.cpp:
* rendering/RenderBlockFlow.h:
* rendering/RenderCounter.cpp:
* rendering/RenderCounter.h:
* rendering/RenderLayer.cpp:
* rendering/RenderLayer.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::createGraphicsLayer):
(WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
(WebCore::RenderLayerBacking::updateForegroundLayer):
(WebCore::RenderLayerBacking::updateBackgroundLayer):
* rendering/RenderLayerCompositor.cpp:
(WebCore::CompositingState::CompositingState):
(WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea):
(WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea):
(WebCore::RenderLayerCompositor::updateLayerForHeader):
(WebCore::RenderLayerCompositor::updateLayerForFooter):
(WebCore::RenderLayerCompositor::updateOverflowControlsLayers):
(WebCore::RenderLayerCompositor::ensureRootLayer):
* rendering/RenderObject.cpp:
* rendering/RenderObject.h: showTreeCharacterOffset was unused.
* rendering/RootInlineBox.cpp:
* rendering/RootInlineBox.h:
* rendering/SimpleLineLayoutFunctions.cpp:
* rendering/SimpleLineLayoutFunctions.h:
* rendering/svg/SVGResources.cpp:
* rendering/svg/SVGResources.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfPlatformh">trunk/Source/WTF/wtf/Platform.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomDocumentMarkerControllercpp">trunk/Source/WebCore/dom/DocumentMarkerController.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumentMarkerControllerh">trunk/Source/WebCore/dom/DocumentMarkerController.h</a></li>
<li><a href="#trunkSourceWebCoredomElementcpp">trunk/Source/WebCore/dom/Element.cpp</a></li>
<li><a href="#trunkSourceWebCoredomElementh">trunk/Source/WebCore/dom/Element.h</a></li>
<li><a href="#trunkSourceWebCoredomNodecpp">trunk/Source/WebCore/dom/Node.cpp</a></li>
<li><a href="#trunkSourceWebCoredomNodeh">trunk/Source/WebCore/dom/Node.h</a></li>
<li><a href="#trunkSourceWebCoredomPositioncpp">trunk/Source/WebCore/dom/Position.cpp</a></li>
<li><a href="#trunkSourceWebCoredomPositionh">trunk/Source/WebCore/dom/Position.h</a></li>
<li><a href="#trunkSourceWebCoredomRangecpp">trunk/Source/WebCore/dom/Range.cpp</a></li>
<li><a href="#trunkSourceWebCoredomRangeh">trunk/Source/WebCore/dom/Range.h</a></li>
<li><a href="#trunkSourceWebCoredomTextcpp">trunk/Source/WebCore/dom/Text.cpp</a></li>
<li><a href="#trunkSourceWebCoredomTexth">trunk/Source/WebCore/dom/Text.h</a></li>
<li><a href="#trunkSourceWebCoreeditingFrameSelectioncpp">trunk/Source/WebCore/editing/FrameSelection.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingFrameSelectionh">trunk/Source/WebCore/editing/FrameSelection.h</a></li>
<li><a href="#trunkSourceWebCoreeditingVisiblePositioncpp">trunk/Source/WebCore/editing/VisiblePosition.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingVisiblePositionh">trunk/Source/WebCore/editing/VisiblePosition.h</a></li>
<li><a href="#trunkSourceWebCoreeditingVisibleSelectioncpp">trunk/Source/WebCore/editing/VisibleSelection.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingVisibleSelectionh">trunk/Source/WebCore/editing/VisibleSelection.h</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLElementStackcpp">trunk/Source/WebCore/html/parser/HTMLElementStack.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLFormattingElementListcpp">trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingCounterNodecpp">trunk/Source/WebCore/rendering/CounterNode.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingCounterNodeh">trunk/Source/WebCore/rendering/CounterNode.h</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineBoxcpp">trunk/Source/WebCore/rendering/InlineBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineBoxh">trunk/Source/WebCore/rendering/InlineBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineFlowBoxcpp">trunk/Source/WebCore/rendering/InlineFlowBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineFlowBoxh">trunk/Source/WebCore/rendering/InlineFlowBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineTextBoxcpp">trunk/Source/WebCore/rendering/InlineTextBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingInlineTextBoxh">trunk/Source/WebCore/rendering/InlineTextBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockFlowcpp">trunk/Source/WebCore/rendering/RenderBlockFlow.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockFlowh">trunk/Source/WebCore/rendering/RenderBlockFlow.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderCountercpp">trunk/Source/WebCore/rendering/RenderCounter.cpp</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="#trunkSourceWebCorerenderingRenderObjectcpp">trunk/Source/WebCore/rendering/RenderObject.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderObjecth">trunk/Source/WebCore/rendering/RenderObject.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRootInlineBoxcpp">trunk/Source/WebCore/rendering/RootInlineBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRootInlineBoxh">trunk/Source/WebCore/rendering/RootInlineBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingSimpleLineLayoutFunctionscpp">trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingSimpleLineLayoutFunctionsh">trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGResourcescpp">trunk/Source/WebCore/rendering/svg/SVGResources.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGResourcesh">trunk/Source/WebCore/rendering/svg/SVGResources.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WTF/ChangeLog        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2015-03-06  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        Allow tree dumping functions to be used in release builds by switching a flag
+        https://bugs.webkit.org/show_bug.cgi?id=142379
+
+        Reviewed by Zalan Bujtas.
+
+        There are various tree dumping functions that are useful for debugging, and sometimes
+        you want to be able to use them in release builds. Currently they are surrounded by
+        #ifndef NDEBUG. Change this to #if ENABLE(TREE_DEBUGGING), which is defined to 0 or 1
+        in wtf/Platform.h
+
+        * wtf/Platform.h:
+
</ins><span class="cx"> 2015-03-05  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Regression(r173761): ASSERTION FAILED: !is8Bit() in StringImpl::characters16()
</span></span></pre></div>
<a id="trunkSourceWTFwtfPlatformh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Platform.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Platform.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WTF/wtf/Platform.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -983,6 +983,14 @@
</span><span class="cx"> #define WTF_USE_AVFOUNDATION 1
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><ins>+#if !defined(ENABLE_TREE_DEBUGGING)
+#if !defined(NDEBUG)
+#define ENABLE_TREE_DEBUGGING 1
+#else
+#define ENABLE_TREE_DEBUGGING 0
+#endif
+#endif
+
</ins><span class="cx"> #if (PLATFORM(IOS) &amp;&amp; __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 60000) || PLATFORM(MAC)
</span><span class="cx"> #define WTF_USE_COREMEDIA 1
</span><span class="cx"> #define HAVE_AVFOUNDATION_VIDEO_OUTPUT 1
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/ChangeLog        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1,3 +1,71 @@
</span><ins>+2015-03-06  Simon Fraser  &lt;simon.fraser@apple.com&gt;
+
+        Allow tree dumping functions to be used in release builds by switching a flag
+        https://bugs.webkit.org/show_bug.cgi?id=142379
+
+        Reviewed by Zalan Bujtas.
+
+        There are various tree dumping functions that are useful for debugging, and sometimes
+        you want to be able to use them in release builds. Currently they are surrounded by
+        #ifndef NDEBUG. Change this to #if ENABLE(TREE_DEBUGGING), which is defined to 0 or 1
+        in wtf/Platform.h
+
+        * dom/DocumentMarkerController.cpp:
+        * dom/DocumentMarkerController.h:
+        * dom/Element.cpp:
+        * dom/Element.h:
+        * dom/Node.cpp:
+        * dom/Node.h:
+        * dom/Position.cpp:
+        * dom/Position.h:
+        * dom/Range.cpp:
+        * dom/Range.h:
+        * dom/Text.cpp:
+        * dom/Text.h:
+        * editing/FrameSelection.cpp:
+        * editing/FrameSelection.h:
+        * editing/VisiblePosition.cpp:
+        * editing/VisiblePosition.h:
+        * editing/VisibleSelection.cpp:
+        * editing/VisibleSelection.h:
+        * html/parser/HTMLElementStack.cpp:
+        * html/parser/HTMLFormattingElementList.cpp:
+        * rendering/CounterNode.cpp:
+        * rendering/CounterNode.h:
+        * rendering/InlineBox.cpp:
+        * rendering/InlineBox.h:
+        * rendering/InlineFlowBox.cpp:
+        * rendering/InlineFlowBox.h:
+        * rendering/InlineTextBox.cpp:
+        * rendering/InlineTextBox.h:
+        * rendering/RenderBlockFlow.cpp:
+        * rendering/RenderBlockFlow.h:
+        * rendering/RenderCounter.cpp:
+        * rendering/RenderCounter.h:
+        * rendering/RenderLayer.cpp:
+        * rendering/RenderLayer.h:
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::createGraphicsLayer):
+        (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
+        (WebCore::RenderLayerBacking::updateForegroundLayer):
+        (WebCore::RenderLayerBacking::updateBackgroundLayer):
+        * rendering/RenderLayerCompositor.cpp:
+        (WebCore::CompositingState::CompositingState):
+        (WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea):
+        (WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea):
+        (WebCore::RenderLayerCompositor::updateLayerForHeader):
+        (WebCore::RenderLayerCompositor::updateLayerForFooter):
+        (WebCore::RenderLayerCompositor::updateOverflowControlsLayers):
+        (WebCore::RenderLayerCompositor::ensureRootLayer):
+        * rendering/RenderObject.cpp:
+        * rendering/RenderObject.h:
+        * rendering/RootInlineBox.cpp:
+        * rendering/RootInlineBox.h:
+        * rendering/SimpleLineLayoutFunctions.cpp:
+        * rendering/SimpleLineLayoutFunctions.h:
+        * rendering/svg/SVGResources.cpp:
+        * rendering/svg/SVGResources.h:
+
</ins><span class="cx"> 2015-03-06  Said Abou-Hallawa  &lt;sabouhallawa@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         An SVG element without intrinsic size inherits the container size as its viewport instead of inheriting the container viewport.
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentMarkerControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DocumentMarkerController.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DocumentMarkerController.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/DocumentMarkerController.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -724,7 +724,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void DocumentMarkerController::showMarkers() const
</span><span class="cx"> {
</span><span class="cx">     fprintf(stderr, &quot;%d nodes have markers:\n&quot;, m_markers.size());
</span><span class="lines">@@ -745,7 +745,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void showDocumentMarkers(const WebCore::DocumentMarkerController* controller)
</span><span class="cx"> {
</span><span class="cx">     if (controller)
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentMarkerControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DocumentMarkerController.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DocumentMarkerController.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/DocumentMarkerController.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -89,7 +89,7 @@
</span><span class="cx">     WEBCORE_EXPORT Vector&lt;IntRect&gt; renderedRectsForMarkers(DocumentMarker::MarkerType);
</span><span class="cx">     void clearDescriptionOnMarkersIntersectingRange(Range*, DocumentMarker::MarkerTypes);
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void showMarkers() const;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -108,7 +108,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void showDocumentMarkers(const WebCore::DocumentMarkerController*);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Element.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1685,7 +1685,7 @@
</span><span class="cx">         styleResolver-&gt;popParentElement(this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void Element::formatForDebugger(char* buffer, unsigned length) const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Element.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -625,7 +625,7 @@
</span><span class="cx">     void addAttributeInternal(const QualifiedName&amp;, const AtomicString&amp; value, SynchronizationOfLazyAttribute);
</span><span class="cx">     void removeAttributeInternal(unsigned index, SynchronizationOfLazyAttribute);
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     virtual void formatForDebugger(char* buffer, unsigned length) const override;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Node.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1486,7 +1486,7 @@
</span><span class="cx">     return p;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> static void appendAttributeDesc(const Node* node, StringBuilder&amp; stringBuilder, const QualifiedName&amp; name, const char* attrDesc)
</span><span class="cx"> {
</span><span class="lines">@@ -1654,7 +1654,7 @@
</span><span class="cx">     showSubTreeAcrossFrame(rootNode, this, &quot;&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#endif
</del><ins>+#endif // ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> // --------
</span><span class="cx"> 
</span><span class="lines">@@ -2222,7 +2222,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showTree(const WebCore::Node* node)
</span><span class="cx"> {
</span><span class="lines">@@ -2236,4 +2236,4 @@
</span><span class="cx">         node-&gt;showNodePathForThis();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#endif
</del><ins>+#endif // ENABLE(TREE_DEBUGGING)
</ins></span></pre></div>
<a id="trunkSourceWebCoredomNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Node.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -488,7 +488,7 @@
</span><span class="cx">     //
</span><span class="cx">     virtual void removedFrom(ContainerNode&amp; insertionPoint);
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     virtual void formatForDebugger(char* buffer, unsigned length) const;
</span><span class="cx"> 
</span><span class="cx">     void showNode(const char* prefix = &quot;&quot;) const;
</span><span class="lines">@@ -496,7 +496,7 @@
</span><span class="cx">     void showNodePathForThis() const;
</span><span class="cx">     void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const;
</span><span class="cx">     void showTreeForThisAcrossFrame() const;
</span><del>-#endif
</del><ins>+#endif // ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx">     void invalidateNodeListAndCollectionCachesInAncestors(const QualifiedName* attrName = nullptr, Element* attributeOwnerElement = nullptr);
</span><span class="cx">     NodeListsNodeData* nodeLists();
</span><span class="lines">@@ -733,7 +733,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showTree(const WebCore::Node*);
</span><span class="cx"> void showNodePath(const WebCore::Node*);
</span></span></pre></div>
<a id="trunkSourceWebCoredomPositioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Position.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Position.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Position.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1346,6 +1346,7 @@
</span><span class="cx">     return LTR;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void Position::debugPosition(const char* msg) const
</span><span class="cx"> {
</span><span class="lines">@@ -1355,8 +1356,6 @@
</span><span class="cx">         fprintf(stderr, &quot;Position [%s]: %s [%p] at %d\n&quot;, msg, deprecatedNode()-&gt;nodeName().utf8().data(), deprecatedNode(), m_offset);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
-
</del><span class="cx"> void Position::formatForDebugger(char* buffer, unsigned length) const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span><span class="lines">@@ -1409,11 +1408,9 @@
</span><span class="cx"> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showTree(const WebCore::Position&amp; pos)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoredomPositionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Position.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Position.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Position.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx">     
</span><span class="cx">     void debugPosition(const char* msg = &quot;&quot;) const;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void formatForDebugger(char* buffer, unsigned length) const;
</span><span class="cx">     void showAnchorTypeAndOffset() const;
</span><span class="cx">     void showTreeForThis() const;
</span><span class="lines">@@ -342,7 +342,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showTree(const WebCore::Position&amp;);
</span><span class="cx"> void showTree(const WebCore::Position*);
</span></span></pre></div>
<a id="trunkSourceWebCoredomRangecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Range.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Range.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Range.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1919,7 +1919,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void Range::formatForDebugger(char* buffer, unsigned length) const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span><span class="lines">@@ -2251,7 +2251,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showTree(const WebCore::Range* range)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoredomRangeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Range.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Range.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Range.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx">     Ref&lt;ClientRectList&gt; getClientRects() const;
</span><span class="cx">     Ref&lt;ClientRect&gt; getBoundingClientRect() const;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void formatForDebugger(char* buffer, unsigned length) const;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -187,7 +187,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showTree(const WebCore::Range*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Text.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Text.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Text.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -216,7 +216,7 @@
</span><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void Text::formatForDebugger(char* buffer, unsigned length) const
</span><span class="cx"> {
</span><span class="cx">     StringBuilder result;
</span></span></pre></div>
<a id="trunkSourceWebCoredomTexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Text.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Text.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/dom/Text.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> 
</span><span class="cx">     virtual Ref&lt;Text&gt; virtualCreate(const String&amp;);
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     virtual void formatForDebugger(char* buffer, unsigned length) const override;
</span><span class="cx"> #endif
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingFrameSelectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/FrameSelection.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/FrameSelection.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/editing/FrameSelection.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -2146,7 +2146,7 @@
</span><span class="cx">     updateDataDetectorsForSelection();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void FrameSelection::formatForDebugger(char* buffer, unsigned length) const
</span><span class="cx"> {
</span><span class="lines">@@ -2585,7 +2585,7 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showTree(const WebCore::FrameSelection&amp; sel)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingFrameSelectionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/FrameSelection.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/FrameSelection.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/editing/FrameSelection.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx">     // Painting.
</span><span class="cx">     WEBCORE_EXPORT void updateAppearance();
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void formatForDebugger(char* buffer, unsigned length) const;
</span><span class="cx">     void showTreeForThis() const;
</span><span class="cx"> #endif
</span><span class="lines">@@ -375,7 +375,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showTree(const WebCore::FrameSelection&amp;);
</span><span class="cx"> void showTree(const WebCore::FrameSelection*);
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisiblePositioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisiblePosition.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisiblePosition.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/editing/VisiblePosition.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -643,7 +643,7 @@
</span><span class="cx">     return containingBlock-&gt;isHorizontalWritingMode() ? caretPoint.x() : caretPoint.y();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void VisiblePosition::debugPosition(const char* msg) const
</span><span class="cx"> {
</span><span class="lines">@@ -745,7 +745,7 @@
</span><span class="cx"> 
</span><span class="cx"> }  // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showTree(const WebCore::VisiblePosition* vpos)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisiblePositionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisiblePosition.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisiblePosition.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/editing/VisiblePosition.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -99,8 +99,8 @@
</span><span class="cx">     // Abs x/y position of the caret ignoring transforms.
</span><span class="cx">     // FIXME: navigation with transforms should be smarter.
</span><span class="cx">     WEBCORE_EXPORT int lineDirectionPointForBlockDirectionNavigation() const;
</span><del>-    
-#ifndef NDEBUG
</del><ins>+
+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void debugPosition(const char* msg = &quot;&quot;) const;
</span><span class="cx">     void formatForDebugger(char* buffer, unsigned length) const;
</span><span class="cx">     void showTreeForThis() const;
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showTree(const WebCore::VisiblePosition*);
</span><span class="cx"> void showTree(const WebCore::VisiblePosition&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisibleSelectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisibleSelection.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisibleSelection.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/editing/VisibleSelection.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -669,7 +669,7 @@
</span><span class="cx">     return is&lt;HTMLInputElement&gt;(textControl) &amp;&amp; downcast&lt;HTMLInputElement&gt;(*textControl).isPasswordField();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void VisibleSelection::debugPosition() const
</span><span class="cx"> {
</span><span class="lines">@@ -726,7 +726,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showTree(const WebCore::VisibleSelection&amp; sel)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingVisibleSelectionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/VisibleSelection.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/VisibleSelection.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/editing/VisibleSelection.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx">     WEBCORE_EXPORT bool isInPasswordField() const;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void debugPosition() const;
</span><span class="cx">     void formatForDebugger(char* buffer, unsigned length) const;
</span><span class="cx">     void showTreeForThis() const;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLElementStackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLElementStack.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLElementStack.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/html/parser/HTMLElementStack.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -606,7 +606,7 @@
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void HTMLElementStack::show()
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLFormattingElementListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -200,7 +200,7 @@
</span><span class="cx">         remove(&amp;candidates[i]-&gt;element());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void HTMLFormattingElementList::show()
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingCounterNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/CounterNode.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/CounterNode.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/CounterNode.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -350,7 +350,7 @@
</span><span class="cx">         next-&gt;recount();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> static void showTreeAndMark(const CounterNode* node)
</span><span class="cx"> {
</span><span class="lines">@@ -374,7 +374,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showCounterTree(const WebCore::CounterNode* counter)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingCounterNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/CounterNode.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/CounterNode.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/CounterNode.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showCounterTree(const WebCore::CounterNode*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineBox.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineBox.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/InlineBox.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> #include &quot;RenderLineBreak.h&quot;
</span><span class="cx"> #include &quot;RootInlineBox.h&quot;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> #include &lt;stdio.h&gt;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx">         parent()-&gt;removeChild(this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> const char* InlineBox::boxName() const
</span><span class="cx"> {
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx">     fprintf(stderr, &quot;%s  (%.2f, %.2f) (%.2f, %.2f) (%p)\n&quot;, boxName(), x(), y(), width(), height(), this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#endif
</del><ins>+#endif // ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> float InlineBox::logicalHeight() const
</span><span class="cx"> {
</span><span class="lines">@@ -328,7 +328,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showNodeTree(const WebCore::InlineBox* inlineBox)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineBox.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineBox.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/InlineBox.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx">     virtual void paint(PaintInfo&amp;, const LayoutPoint&amp;, LayoutUnit lineTop, LayoutUnit lineBottom) = 0;
</span><span class="cx">     virtual bool nodeAtPoint(const HitTestRequest&amp;, HitTestResult&amp;, const HitTestLocation&amp; locationInContainer, const LayoutPoint&amp; accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) = 0;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void showNodeTreeForThis() const;
</span><span class="cx">     void showLineTreeForThis() const;
</span><span class="cx">     
</span><span class="lines">@@ -446,7 +446,7 @@
</span><span class="cx">     static bool isType(const WebCore::InlineBox&amp; box) { return box.predicate; } \
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_END()
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showNodeTree(const WebCore::InlineBox*);
</span><span class="cx"> void showLineTree(const WebCore::InlineBox*);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineFlowBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineFlowBox.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineFlowBox.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/InlineFlowBox.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1687,7 +1687,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> const char* InlineFlowBox::boxName() const
</span><span class="cx"> {
</span><span class="lines">@@ -1701,6 +1701,10 @@
</span><span class="cx">         box-&gt;showLineTreeAndMark(markedBox, depth + 1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#endif
+
+#ifndef NDEBUG
+
</ins><span class="cx"> void InlineFlowBox::checkConsistency() const
</span><span class="cx"> {
</span><span class="cx">     assertNotDeleted();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineFlowBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineFlowBox.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineFlowBox.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/InlineFlowBox.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">     virtual ~InlineFlowBox();
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     virtual void showLineTreeAndMark(const InlineBox* markedBox, int depth) const override;
</span><span class="cx">     virtual const char* boxName() const override;
</span><span class="cx"> #endif
</span><span class="lines">@@ -367,7 +367,7 @@
</span><span class="cx"> 
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_INLINE_BOX(InlineFlowBox, isInlineFlowBox())
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showTree(const WebCore::InlineFlowBox*);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineTextBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineTextBox.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineTextBox.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/InlineTextBox.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1393,7 +1393,7 @@
</span><span class="cx">     return run;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> const char* InlineTextBox::boxName() const
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingInlineTextBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/InlineTextBox.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/InlineTextBox.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/InlineTextBox.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> 
</span><span class="cx">     virtual void dirtyOwnLineBoxes() { dirtyLineBoxes(); }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     virtual void showLineBox(bool mark, int depth) const override final;
</span><span class="cx">     virtual const char* boxName() const override final;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockFlowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlockFlow.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -3556,7 +3556,7 @@
</span><span class="cx">         clearNeedsLayout();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void RenderBlockFlow::showLineTreeAndMark(const InlineBox* markedBox, int depth) const
</span><span class="cx"> {
</span><span class="cx">     for (const RootInlineBox* root = firstRootBox(); root; root = root-&gt;nextRootBox())
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockFlowh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlockFlow.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -363,7 +363,7 @@
</span><span class="cx">     void deleteLineBoxesBeforeSimpleLineLayout();
</span><span class="cx">     void ensureLineBoxes();
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void showLineTreeAndMark(const InlineBox* markedBox, int depth) const;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderCountercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderCounter.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderCounter.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderCounter.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> #include &quot;RenderView.h&quot;
</span><span class="cx"> #include &lt;wtf/StdLibExtras.h&gt;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> #include &lt;stdio.h&gt;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -600,7 +600,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showCounterRendererTree(const WebCore::RenderObject* renderer, const char* counterName)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderCounterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderCounter.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderCounter.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderCounter.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> 
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderCounter, isCounter())
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showCounterRendererTree(const WebCore::RenderObject*, const char* counterName = 0);
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -7047,7 +7047,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showLayerTree(const WebCore::RenderLayer* layer)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderLayer.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1172,7 +1172,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showLayerTree(const WebCore::RenderLayer*);
</span><span class="cx"> void showLayerTree(const WebCore::RenderObject*);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -169,7 +169,7 @@
</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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     graphicsLayer-&gt;setName(name);
</span><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(name);
</span><span class="lines">@@ -275,7 +275,7 @@
</span><span class="cx"> void RenderLayerBacking::createPrimaryGraphicsLayer()
</span><span class="cx"> {
</span><span class="cx">     String layerName;
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     layerName = m_owningLayer.name();
</span><span class="cx"> #endif
</span><span class="cx">     
</span><span class="lines">@@ -1366,7 +1366,7 @@
</span><span class="cx">     if (needsForegroundLayer) {
</span><span class="cx">         if (!m_foregroundLayer) {
</span><span class="cx">             String layerName;
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             layerName = m_owningLayer.name() + &quot; (foreground)&quot;;
</span><span class="cx"> #endif
</span><span class="cx">             m_foregroundLayer = createGraphicsLayer(layerName);
</span><span class="lines">@@ -1395,7 +1395,7 @@
</span><span class="cx">     if (needsBackgroundLayer) {
</span><span class="cx">         if (!m_backgroundLayer) {
</span><span class="cx">             String layerName;
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             layerName = m_owningLayer.name() + &quot; (background)&quot;;
</span><span class="cx"> #endif
</span><span class="cx">             m_backgroundLayer = createGraphicsLayer(layerName);
</span><span class="lines">@@ -1407,7 +1407,7 @@
</span><span class="cx">         
</span><span class="cx">         if (!m_contentsContainmentLayer) {
</span><span class="cx">             String layerName;
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             layerName = m_owningLayer.name() + &quot; (contents containment)&quot;;
</span><span class="cx"> #endif
</span><span class="cx">             m_contentsContainmentLayer = createGraphicsLayer(layerName);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerCompositorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx"> #include &quot;RenderScrollbar.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> #include &quot;RenderTreeAsText.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -225,7 +225,7 @@
</span><span class="cx"> #if ENABLE(CSS_COMPOSITING)
</span><span class="cx">         , m_hasNotIsolatedCompositedBlendingDescendants(false)
</span><span class="cx"> #endif
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         , m_depth(0)
</span><span class="cx"> #endif
</span><span class="cx">     {
</span><span class="lines">@@ -238,7 +238,7 @@
</span><span class="cx"> #if ENABLE(CSS_COMPOSITING)
</span><span class="cx">         , m_hasNotIsolatedCompositedBlendingDescendants(other.m_hasNotIsolatedCompositedBlendingDescendants)
</span><span class="cx"> #endif
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         , m_depth(other.m_depth + 1)
</span><span class="cx"> #endif
</span><span class="cx">     {
</span><span class="lines">@@ -250,7 +250,7 @@
</span><span class="cx"> #if ENABLE(CSS_COMPOSITING)
</span><span class="cx">     bool m_hasNotIsolatedCompositedBlendingDescendants;
</span><span class="cx"> #endif
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     int m_depth;
</span><span class="cx"> #endif
</span><span class="cx"> };
</span><span class="lines">@@ -3027,7 +3027,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForTopOverhangArea) {
</span><span class="cx">         m_layerForTopOverhangArea = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         m_layerForTopOverhangArea-&gt;setName(&quot;top overhang area&quot;);
</span><span class="cx"> #endif
</span><span class="cx">         m_scrollLayer-&gt;addChildBelow(m_layerForTopOverhangArea.get(), m_rootContentLayer.get());
</span><span class="lines">@@ -3051,7 +3051,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForBottomOverhangArea) {
</span><span class="cx">         m_layerForBottomOverhangArea = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         m_layerForBottomOverhangArea-&gt;setName(&quot;bottom overhang area&quot;);
</span><span class="cx"> #endif
</span><span class="cx">         m_scrollLayer-&gt;addChildBelow(m_layerForBottomOverhangArea.get(), m_rootContentLayer.get());
</span><span class="lines">@@ -3082,7 +3082,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForHeader) {
</span><span class="cx">         m_layerForHeader = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         m_layerForHeader-&gt;setName(&quot;header&quot;);
</span><span class="cx"> #endif
</span><span class="cx">         m_scrollLayer-&gt;addChildAbove(m_layerForHeader.get(), m_rootContentLayer.get());
</span><span class="lines">@@ -3123,7 +3123,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_layerForFooter) {
</span><span class="cx">         m_layerForFooter = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         m_layerForFooter-&gt;setName(&quot;footer&quot;);
</span><span class="cx"> #endif
</span><span class="cx">         m_scrollLayer-&gt;addChildAbove(m_layerForFooter.get(), m_rootContentLayer.get());
</span><span class="lines">@@ -3191,7 +3191,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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_layerForOverhangAreas-&gt;setName(&quot;overhang areas&quot;);
</span><span class="cx"> #endif
</span><span class="cx">             m_layerForOverhangAreas-&gt;setDrawsContent(false);
</span><span class="lines">@@ -3220,7 +3220,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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_contentShadowLayer-&gt;setName(&quot;content shadow&quot;);
</span><span class="cx"> #endif
</span><span class="cx">             m_contentShadowLayer-&gt;setSize(m_rootContentLayer-&gt;size());
</span><span class="lines">@@ -3240,7 +3240,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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_layerForHorizontalScrollbar-&gt;setName(&quot;horizontal scrollbar container&quot;);
</span><span class="cx"> 
</span><span class="cx"> #endif
</span><span class="lines">@@ -3264,7 +3264,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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_layerForVerticalScrollbar-&gt;setName(&quot;vertical scrollbar container&quot;);
</span><span class="cx"> #endif
</span><span class="cx"> #if PLATFORM(COCOA) &amp;&amp; USE(CA)
</span><span class="lines">@@ -3311,7 +3311,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!m_rootContentLayer) {
</span><span class="cx">         m_rootContentLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">         m_rootContentLayer-&gt;setName(&quot;content root&quot;);
</span><span class="cx"> #endif
</span><span class="cx">         IntRect overflowRect = snappedIntRect(m_renderView.layoutOverflowRect());
</span><span class="lines">@@ -3336,19 +3336,19 @@
</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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_overflowControlsHostLayer-&gt;setName(&quot;overflow controls host&quot;);
</span><span class="cx"> #endif
</span><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>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_clipLayer-&gt;setName(&quot;frame clipping&quot;);
</span><span class="cx"> #endif
</span><span class="cx">             m_clipLayer-&gt;setMasksToBounds(true);
</span><span class="cx">             
</span><span class="cx">             m_scrollLayer = GraphicsLayer::create(graphicsLayerFactory(), *this);
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">             m_scrollLayer-&gt;setName(&quot;frame scrolling&quot;);
</span><span class="cx"> #endif
</span><span class="cx">             // Hook them up
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderObject.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1351,7 +1351,7 @@
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> static void showRenderTreeLegend()
</span><span class="cx"> {
</span><span class="lines">@@ -2497,7 +2497,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> 
</span><span class="cx"> void showNodeTree(const WebCore::RenderObject* object)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderObject.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderObject.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RenderObject.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -136,10 +136,6 @@
</span><span class="cx"> };
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
-const int showTreeCharacterOffset = 39;
-#endif
-
</del><span class="cx"> // Base class for all rendering tree objects.
</span><span class="cx"> class RenderObject : public CachedImageClient {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="lines">@@ -271,7 +267,7 @@
</span><span class="cx">     void setLayerNeedsFullRepaintForPositionedMovementLayout();
</span><span class="cx"> 
</span><span class="cx"> public:
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void showNodeTreeForThis() const;
</span><span class="cx">     void showRenderTreeForThis() const;
</span><span class="cx">     void showLineTreeForThis() const;
</span><span class="lines">@@ -1111,7 +1107,7 @@
</span><span class="cx">     static bool isType(const WebCore::RenderObject&amp; renderer) { return renderer.predicate; } \
</span><span class="cx"> SPECIALIZE_TYPE_TRAITS_END()
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> // Outside the WebCore namespace for ease of invocation from gdb.
</span><span class="cx"> void showNodeTree(const WebCore::RenderObject*);
</span><span class="cx"> void showLineTree(const WebCore::RenderObject*);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRootInlineBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RootInlineBox.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RootInlineBox.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RootInlineBox.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -1152,7 +1152,7 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> const char* RootInlineBox::boxName() const
</span><span class="cx"> {
</span><span class="cx">     return &quot;RootInlineBox&quot;;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRootInlineBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RootInlineBox.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RootInlineBox.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/RootInlineBox.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx">     Node* getLogicalStartBoxWithNode(InlineBox*&amp;) const;
</span><span class="cx">     Node* getLogicalEndBoxWithNode(InlineBox*&amp;) const;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     virtual const char* boxName() const override final;
</span><span class="cx"> #endif
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingSimpleLineLayoutFunctionscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -179,7 +179,7 @@
</span><span class="cx">     return quads;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> static void printPrefix(int&amp; printedCharacters, int depth)
</span><span class="cx"> {
</span><span class="cx">     fprintf(stderr, &quot;------- --&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingSimpleLineLayoutFunctionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> LayoutUnit lineHeightFromFlow(const RenderBlockFlow&amp;);
</span><span class="cx"> LayoutUnit baselineFromFlow(const RenderBlockFlow&amp;);
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void showLineLayoutForFlow(const RenderBlockFlow&amp;, const Layout&amp;, int depth);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGResourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGResources.cpp (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGResources.cpp        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/svg/SVGResources.cpp        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx"> #include &quot;SVGRenderStyle.h&quot;
</span><span class="cx"> #include &quot;SVGURIReference.h&quot;
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> #include &lt;stdio.h&gt;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -612,7 +612,7 @@
</span><span class="cx">     m_linkedResource = 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx"> void SVGResources::dump(const RenderObject* object)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(object);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGResourcesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGResources.h (181165 => 181166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGResources.h        2015-03-06 18:15:48 UTC (rev 181165)
+++ trunk/Source/WebCore/rendering/svg/SVGResources.h        2015-03-06 18:20:40 UTC (rev 181166)
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx">     void removeClientFromCache(RenderElement&amp;, bool markForInvalidation = true) const;
</span><span class="cx">     void resourceDestroyed(RenderSVGResourceContainer&amp;);
</span><span class="cx"> 
</span><del>-#ifndef NDEBUG
</del><ins>+#if ENABLE(TREE_DEBUGGING)
</ins><span class="cx">     void dump(const RenderObject*);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>