Changeset 181139 in webkit
- Timestamp:
- Mar 5, 2015, 10:19:30 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181137 r181139 1 2015-03-05 Simon Fraser <simon.fraser@apple.com> 2 3 Allow tree dumping functions to be used in release builds by switching a flag 4 https://bugs.webkit.org/show_bug.cgi?id=142379 5 6 Reviewed by Zalan Bujtas. 7 8 There are various tree dumping functions that are useful for debugging, and sometimes 9 you want to be able to use them in release builds. Currently they are surrounded by 10 #ifndef NDEBUG. Change this to #if ENABLE(TREE_DEBUGGING), which is defined to 0 or 1 11 in config.h 12 13 * config.h: 14 * dom/DocumentMarkerController.cpp: 15 * dom/DocumentMarkerController.h: 16 * dom/Element.cpp: 17 * dom/Element.h: 18 * dom/Node.cpp: 19 * dom/Node.h: 20 * dom/Position.cpp: Position::debugPosition(const char* msg) was available in release builds, but this changes 21 is to respect ENABLE_TREE_DEBUGGING, which I think is correct. 22 * dom/Position.h: 23 * dom/Range.cpp: 24 * dom/Range.h: 25 * dom/Text.cpp: 26 * dom/Text.h: 27 * rendering/CounterNode.cpp: 28 * rendering/CounterNode.h: 29 * rendering/InlineBox.cpp: 30 * rendering/InlineBox.h: 31 * rendering/InlineFlowBox.cpp: 32 * rendering/InlineFlowBox.h: 33 * rendering/InlineTextBox.cpp: 34 * rendering/InlineTextBox.h: 35 * rendering/RenderBlockFlow.cpp: 36 * rendering/RenderBlockFlow.h: 37 * rendering/RenderCounter.cpp: 38 * rendering/RenderCounter.h: 39 * rendering/RenderLayer.cpp: 40 * rendering/RenderLayer.h: 41 * rendering/RenderLayerBacking.cpp: 42 (WebCore::RenderLayerBacking::createGraphicsLayer): 43 (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer): 44 (WebCore::RenderLayerBacking::updateForegroundLayer): 45 (WebCore::RenderLayerBacking::updateBackgroundLayer): 46 * rendering/RenderLayerCompositor.cpp: 47 (WebCore::CompositingState::CompositingState): 48 (WebCore::RenderLayerCompositor::updateLayerForTopOverhangArea): 49 (WebCore::RenderLayerCompositor::updateLayerForBottomOverhangArea): 50 (WebCore::RenderLayerCompositor::updateLayerForHeader): 51 (WebCore::RenderLayerCompositor::updateLayerForFooter): 52 (WebCore::RenderLayerCompositor::updateOverflowControlsLayers): 53 (WebCore::RenderLayerCompositor::ensureRootLayer): 54 * rendering/RenderObject.cpp: 55 * rendering/RenderObject.h: showTreeCharacterOffset was unused. 56 * rendering/RootInlineBox.cpp: 57 * rendering/RootInlineBox.h: 58 * rendering/SimpleLineLayoutFunctions.cpp: 59 * rendering/SimpleLineLayoutFunctions.h: 60 * rendering/svg/SVGResources.cpp: 61 * rendering/svg/SVGResources.h: 62 1 63 2015-03-05 Brent Fulgham <bfulgham@apple.com> 2 64 -
trunk/Source/WebCore/config.h
r180765 r181139 136 136 #endif 137 137 138 #ifdef NDEBUG 139 #define ENABLE_TREE_DEBUGGING 0 140 #else 141 #define ENABLE_TREE_DEBUGGING 1 142 #endif -
trunk/Source/WebCore/dom/DocumentMarkerController.cpp
r179143 r181139 725 725 } 726 726 727 #if ndef NDEBUG727 #if ENABLE(TREE_DEBUGGING) 728 728 void DocumentMarkerController::showMarkers() const 729 729 { … … 746 746 } // namespace WebCore 747 747 748 #if ndef NDEBUG748 #if ENABLE(TREE_DEBUGGING) 749 749 void showDocumentMarkers(const WebCore::DocumentMarkerController* controller) 750 750 { -
trunk/Source/WebCore/dom/DocumentMarkerController.h
r174876 r181139 90 90 void clearDescriptionOnMarkersIntersectingRange(Range*, DocumentMarker::MarkerTypes); 91 91 92 #if ndef NDEBUG92 #if ENABLE(TREE_DEBUGGING) 93 93 void showMarkers() const; 94 94 #endif … … 109 109 } // namespace WebCore 110 110 111 #if ndef NDEBUG111 #if ENABLE(TREE_DEBUGGING) 112 112 void showDocumentMarkers(const WebCore::DocumentMarkerController*); 113 113 #endif -
trunk/Source/WebCore/dom/Element.cpp
r180809 r181139 1686 1686 } 1687 1687 1688 #if ndef NDEBUG1688 #if ENABLE(TREE_DEBUGGING) 1689 1689 void Element::formatForDebugger(char* buffer, unsigned length) const 1690 1690 { -
trunk/Source/WebCore/dom/Element.h
r180966 r181139 626 626 void removeAttributeInternal(unsigned index, SynchronizationOfLazyAttribute); 627 627 628 #if ndef NDEBUG628 #if ENABLE(TREE_DEBUGGING) 629 629 virtual void formatForDebugger(char* buffer, unsigned length) const override; 630 630 #endif -
trunk/Source/WebCore/dom/Node.cpp
r180867 r181139 1487 1487 } 1488 1488 1489 #if ndef NDEBUG1489 #if ENABLE(TREE_DEBUGGING) 1490 1490 1491 1491 static void appendAttributeDesc(const Node* node, StringBuilder& stringBuilder, const QualifiedName& name, const char* attrDesc) … … 1655 1655 } 1656 1656 1657 #endif 1657 #endif // ENABLE(TREE_DEBUGGING) 1658 1658 1659 1659 // -------- … … 2223 2223 } // namespace WebCore 2224 2224 2225 #if ndef NDEBUG2225 #if ENABLE(TREE_DEBUGGING) 2226 2226 2227 2227 void showTree(const WebCore::Node* node) … … 2237 2237 } 2238 2238 2239 #endif 2239 #endif // ENABLE(TREE_DEBUGGING) -
trunk/Source/WebCore/dom/Node.h
r180809 r181139 489 489 virtual void removedFrom(ContainerNode& insertionPoint); 490 490 491 #if ndef NDEBUG491 #if ENABLE(TREE_DEBUGGING) 492 492 virtual void formatForDebugger(char* buffer, unsigned length) const; 493 493 … … 497 497 void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const; 498 498 void showTreeForThisAcrossFrame() const; 499 #endif 499 #endif // ENABLE(TREE_DEBUGGING) 500 500 501 501 void invalidateNodeListAndCollectionCachesInAncestors(const QualifiedName* attrName = nullptr, Element* attributeOwnerElement = nullptr); … … 734 734 } // namespace WebCore 735 735 736 #if ndef NDEBUG736 #if ENABLE(TREE_DEBUGGING) 737 737 // Outside the WebCore namespace for ease of invocation from gdb. 738 738 void showTree(const WebCore::Node*); -
trunk/Source/WebCore/dom/Position.cpp
r180726 r181139 1347 1347 } 1348 1348 1349 #if ENABLE(TREE_DEBUGGING) 1349 1350 1350 1351 void Position::debugPosition(const char* msg) const … … 1355 1356 fprintf(stderr, "Position [%s]: %s [%p] at %d\n", msg, deprecatedNode()->nodeName().utf8().data(), deprecatedNode(), m_offset); 1356 1357 } 1357 1358 #ifndef NDEBUG1359 1358 1360 1359 void Position::formatForDebugger(char* buffer, unsigned length) const … … 1410 1409 #endif 1411 1410 1412 1413 1414 1411 } // namespace WebCore 1415 1412 1416 #if ndef NDEBUG1413 #if ENABLE(TREE_DEBUGGING) 1417 1414 1418 1415 void showTree(const WebCore::Position& pos) -
trunk/Source/WebCore/dom/Position.h
r180114 r181139 203 203 void debugPosition(const char* msg = "") const; 204 204 205 #if ndef NDEBUG205 #if ENABLE(TREE_DEBUGGING) 206 206 void formatForDebugger(char* buffer, unsigned length) const; 207 207 void showAnchorTypeAndOffset() const; … … 343 343 } // namespace WebCore 344 344 345 #if ndef NDEBUG345 #if ENABLE(TREE_DEBUGGING) 346 346 // Outside the WebCore namespace for ease of invocation from gdb. 347 347 void showTree(const WebCore::Position&); -
trunk/Source/WebCore/dom/Range.cpp
r179143 r181139 1920 1920 #endif 1921 1921 1922 #if ndef NDEBUG1922 #if ENABLE(TREE_DEBUGGING) 1923 1923 void Range::formatForDebugger(char* buffer, unsigned length) const 1924 1924 { … … 2252 2252 } // namespace WebCore 2253 2253 2254 #if ndef NDEBUG2254 #if ENABLE(TREE_DEBUGGING) 2255 2255 2256 2256 void showTree(const WebCore::Range* range) -
trunk/Source/WebCore/dom/Range.h
r179974 r181139 152 152 Ref<ClientRect> getBoundingClientRect() const; 153 153 154 #if ndef NDEBUG154 #if ENABLE(TREE_DEBUGGING) 155 155 void formatForDebugger(char* buffer, unsigned length) const; 156 156 #endif … … 188 188 } // namespace 189 189 190 #if ndef NDEBUG190 #if ENABLE(TREE_DEBUGGING) 191 191 // Outside the WebCore namespace for ease of invocation from gdb. 192 192 void showTree(const WebCore::Range*); -
trunk/Source/WebCore/dom/Text.cpp
r179143 r181139 217 217 } 218 218 219 #if ndef NDEBUG219 #if ENABLE(TREE_DEBUGGING) 220 220 void Text::formatForDebugger(char* buffer, unsigned length) const 221 221 { -
trunk/Source/WebCore/dom/Text.h
r177864 r181139 68 68 virtual Ref<Text> virtualCreate(const String&); 69 69 70 #if ndef NDEBUG70 #if ENABLE(TREE_DEBUGGING) 71 71 virtual void formatForDebugger(char* buffer, unsigned length) const override; 72 72 #endif -
trunk/Source/WebCore/rendering/CounterNode.cpp
r177733 r181139 351 351 } 352 352 353 #if ndef NDEBUG353 #if ENABLE(TREE_DEBUGGING) 354 354 355 355 static void showTreeAndMark(const CounterNode* node) … … 375 375 } // namespace WebCore 376 376 377 #if ndef NDEBUG377 #if ENABLE(TREE_DEBUGGING) 378 378 379 379 void showCounterTree(const WebCore::CounterNode* counter) -
trunk/Source/WebCore/rendering/CounterNode.h
r177733 r181139 94 94 } // namespace WebCore 95 95 96 #if ndef NDEBUG96 #if ENABLE(TREE_DEBUGGING) 97 97 // Outside the WebCore namespace for ease of invocation from gdb. 98 98 void showCounterTree(const WebCore::CounterNode*); -
trunk/Source/WebCore/rendering/InlineBox.cpp
r176619 r181139 31 31 #include "RootInlineBox.h" 32 32 33 #if ndef NDEBUG33 #if ENABLE(TREE_DEBUGGING) 34 34 #include <stdio.h> 35 35 #endif … … 85 85 } 86 86 87 #if ndef NDEBUG87 #if ENABLE(TREE_DEBUGGING) 88 88 89 89 const char* InlineBox::boxName() const … … 120 120 } 121 121 122 #endif 122 #endif // ENABLE(TREE_DEBUGGING) 123 123 124 124 float InlineBox::logicalHeight() const … … 329 329 } // namespace WebCore 330 330 331 #if ndef NDEBUG331 #if ENABLE(TREE_DEBUGGING) 332 332 333 333 void showNodeTree(const WebCore::InlineBox* inlineBox) -
trunk/Source/WebCore/rendering/InlineBox.h
r177377 r181139 74 74 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) = 0; 75 75 76 #if ndef NDEBUG76 #if ENABLE(TREE_DEBUGGING) 77 77 void showNodeTreeForThis() const; 78 78 void showLineTreeForThis() const; … … 447 447 SPECIALIZE_TYPE_TRAITS_END() 448 448 449 #if ndef NDEBUG449 #if ENABLE(TREE_DEBUGGING) 450 450 // Outside the WebCore namespace for ease of invocation from gdb. 451 451 void showNodeTree(const WebCore::InlineBox*); -
trunk/Source/WebCore/rendering/InlineFlowBox.cpp
r180150 r181139 1688 1688 } 1689 1689 1690 #if ndef NDEBUG1690 #if ENABLE(TREE_DEBUGGING) 1691 1691 1692 1692 const char* InlineFlowBox::boxName() const … … 1701 1701 box->showLineTreeAndMark(markedBox, depth + 1); 1702 1702 } 1703 1704 #endif 1705 1706 #ifndef NDEBUG 1703 1707 1704 1708 void InlineFlowBox::checkConsistency() const -
trunk/Source/WebCore/rendering/InlineFlowBox.h
r180150 r181139 71 71 #endif 72 72 73 #if ndef NDEBUG73 #if ENABLE(TREE_DEBUGGING) 74 74 virtual void showLineTreeAndMark(const InlineBox* markedBox, int depth) const override; 75 75 virtual const char* boxName() const override; … … 368 368 SPECIALIZE_TYPE_TRAITS_INLINE_BOX(InlineFlowBox, isInlineFlowBox()) 369 369 370 #if ndef NDEBUG370 #if ENABLE(TREE_DEBUGGING) 371 371 // Outside the WebCore namespace for ease of invocation from gdb. 372 372 void showTree(const WebCore::InlineFlowBox*); -
trunk/Source/WebCore/rendering/InlineTextBox.cpp
r180273 r181139 1394 1394 } 1395 1395 1396 #if ndef NDEBUG1396 #if ENABLE(TREE_DEBUGGING) 1397 1397 1398 1398 const char* InlineTextBox::boxName() const -
trunk/Source/WebCore/rendering/InlineTextBox.h
r180273 r181139 95 95 virtual void dirtyOwnLineBoxes() { dirtyLineBoxes(); } 96 96 97 #if ndef NDEBUG97 #if ENABLE(TREE_DEBUGGING) 98 98 virtual void showLineBox(bool mark, int depth) const override final; 99 99 virtual const char* boxName() const override final; -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r180364 r181139 3557 3557 } 3558 3558 3559 #if ndef NDEBUG3559 #if ENABLE(TREE_DEBUGGING) 3560 3560 void RenderBlockFlow::showLineTreeAndMark(const InlineBox* markedBox, int depth) const 3561 3561 { -
trunk/Source/WebCore/rendering/RenderBlockFlow.h
r180278 r181139 364 364 void ensureLineBoxes(); 365 365 366 #if ndef NDEBUG366 #if ENABLE(TREE_DEBUGGING) 367 367 void showLineTreeAndMark(const InlineBox* markedBox, int depth) const; 368 368 #endif -
trunk/Source/WebCore/rendering/RenderCounter.cpp
r179143 r181139 36 36 #include <wtf/StdLibExtras.h> 37 37 38 #if ndef NDEBUG38 #if ENABLE(TREE_DEBUGGING) 39 39 #include <stdio.h> 40 40 #endif … … 601 601 } // namespace WebCore 602 602 603 #if ndef NDEBUG603 #if ENABLE(TREE_DEBUGGING) 604 604 605 605 void showCounterRendererTree(const WebCore::RenderObject* renderer, const char* counterName) -
trunk/Source/WebCore/rendering/RenderCounter.h
r175485 r181139 64 64 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderCounter, isCounter()) 65 65 66 #if ndef NDEBUG66 #if ENABLE(TREE_DEBUGGING) 67 67 // Outside the WebCore namespace for ease of invocation from gdb. 68 68 void showCounterRendererTree(const WebCore::RenderObject*, const char* counterName = 0); -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r180948 r181139 7048 7048 } // namespace WebCore 7049 7049 7050 #if ndef NDEBUG7050 #if ENABLE(TREE_DEBUGGING) 7051 7051 7052 7052 void showLayerTree(const WebCore::RenderLayer* layer) -
trunk/Source/WebCore/rendering/RenderLayer.h
r180948 r181139 1173 1173 } // namespace WebCore 1174 1174 1175 #if ndef NDEBUG1175 #if ENABLE(TREE_DEBUGGING) 1176 1176 // Outside the WebCore namespace for ease of invocation from gdb. 1177 1177 void showLayerTree(const WebCore::RenderLayer*); -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r180965 r181139 170 170 std::unique_ptr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFactory, *this, layerType); 171 171 172 #if ndef NDEBUG172 #if ENABLE(TREE_DEBUGGING) 173 173 graphicsLayer->setName(name); 174 174 #else … … 276 276 { 277 277 String layerName; 278 #if ndef NDEBUG278 #if ENABLE(TREE_DEBUGGING) 279 279 layerName = m_owningLayer.name(); 280 280 #endif … … 1367 1367 if (!m_foregroundLayer) { 1368 1368 String layerName; 1369 #if ndef NDEBUG1369 #if ENABLE(TREE_DEBUGGING) 1370 1370 layerName = m_owningLayer.name() + " (foreground)"; 1371 1371 #endif … … 1396 1396 if (!m_backgroundLayer) { 1397 1397 String layerName; 1398 #if ndef NDEBUG1398 #if ENABLE(TREE_DEBUGGING) 1399 1399 layerName = m_owningLayer.name() + " (background)"; 1400 1400 #endif … … 1408 1408 if (!m_contentsContainmentLayer) { 1409 1409 String layerName; 1410 #if ndef NDEBUG1410 #if ENABLE(TREE_DEBUGGING) 1411 1411 layerName = m_owningLayer.name() + " (contents containment)"; 1412 1412 #endif -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r179771 r181139 72 72 #endif 73 73 74 #if ndef NDEBUG74 #if ENABLE(TREE_DEBUGGING) 75 75 #include "RenderTreeAsText.h" 76 76 #endif … … 226 226 , m_hasNotIsolatedCompositedBlendingDescendants(false) 227 227 #endif 228 #if ndef NDEBUG228 #if ENABLE(TREE_DEBUGGING) 229 229 , m_depth(0) 230 230 #endif … … 239 239 , m_hasNotIsolatedCompositedBlendingDescendants(other.m_hasNotIsolatedCompositedBlendingDescendants) 240 240 #endif 241 #if ndef NDEBUG241 #if ENABLE(TREE_DEBUGGING) 242 242 , m_depth(other.m_depth + 1) 243 243 #endif … … 251 251 bool m_hasNotIsolatedCompositedBlendingDescendants; 252 252 #endif 253 #if ndef NDEBUG253 #if ENABLE(TREE_DEBUGGING) 254 254 int m_depth; 255 255 #endif … … 3016 3016 if (!m_layerForTopOverhangArea) { 3017 3017 m_layerForTopOverhangArea = GraphicsLayer::create(graphicsLayerFactory(), *this); 3018 #if ndef NDEBUG3018 #if ENABLE(TREE_DEBUGGING) 3019 3019 m_layerForTopOverhangArea->setName("top overhang area"); 3020 3020 #endif … … 3040 3040 if (!m_layerForBottomOverhangArea) { 3041 3041 m_layerForBottomOverhangArea = GraphicsLayer::create(graphicsLayerFactory(), *this); 3042 #if ndef NDEBUG3042 #if ENABLE(TREE_DEBUGGING) 3043 3043 m_layerForBottomOverhangArea->setName("bottom overhang area"); 3044 3044 #endif … … 3071 3071 if (!m_layerForHeader) { 3072 3072 m_layerForHeader = GraphicsLayer::create(graphicsLayerFactory(), *this); 3073 #if ndef NDEBUG3073 #if ENABLE(TREE_DEBUGGING) 3074 3074 m_layerForHeader->setName("header"); 3075 3075 #endif … … 3112 3112 if (!m_layerForFooter) { 3113 3113 m_layerForFooter = GraphicsLayer::create(graphicsLayerFactory(), *this); 3114 #if ndef NDEBUG3114 #if ENABLE(TREE_DEBUGGING) 3115 3115 m_layerForFooter->setName("footer"); 3116 3116 #endif … … 3180 3180 if (!m_layerForOverhangAreas) { 3181 3181 m_layerForOverhangAreas = GraphicsLayer::create(graphicsLayerFactory(), *this); 3182 #if ndef NDEBUG3182 #if ENABLE(TREE_DEBUGGING) 3183 3183 m_layerForOverhangAreas->setName("overhang areas"); 3184 3184 #endif … … 3209 3209 if (!m_contentShadowLayer) { 3210 3210 m_contentShadowLayer = GraphicsLayer::create(graphicsLayerFactory(), *this); 3211 #if ndef NDEBUG3211 #if ENABLE(TREE_DEBUGGING) 3212 3212 m_contentShadowLayer->setName("content shadow"); 3213 3213 #endif … … 3229 3229 m_layerForHorizontalScrollbar = GraphicsLayer::create(graphicsLayerFactory(), *this); 3230 3230 m_layerForHorizontalScrollbar->setShowDebugBorder(m_showDebugBorders); 3231 #if ndef NDEBUG3231 #if ENABLE(TREE_DEBUGGING) 3232 3232 m_layerForHorizontalScrollbar->setName("horizontal scrollbar container"); 3233 3233 … … 3253 3253 m_layerForVerticalScrollbar = GraphicsLayer::create(graphicsLayerFactory(), *this); 3254 3254 m_layerForVerticalScrollbar->setShowDebugBorder(m_showDebugBorders); 3255 #if ndef NDEBUG3255 #if ENABLE(TREE_DEBUGGING) 3256 3256 m_layerForVerticalScrollbar->setName("vertical scrollbar container"); 3257 3257 #endif … … 3300 3300 if (!m_rootContentLayer) { 3301 3301 m_rootContentLayer = GraphicsLayer::create(graphicsLayerFactory(), *this); 3302 #if ndef NDEBUG3302 #if ENABLE(TREE_DEBUGGING) 3303 3303 m_rootContentLayer->setName("content root"); 3304 3304 #endif … … 3325 3325 // Create a layer to host the clipping layer and the overflow controls layers. 3326 3326 m_overflowControlsHostLayer = GraphicsLayer::create(graphicsLayerFactory(), *this); 3327 #if ndef NDEBUG3327 #if ENABLE(TREE_DEBUGGING) 3328 3328 m_overflowControlsHostLayer->setName("overflow controls host"); 3329 3329 #endif … … 3331 3331 // Create a clipping layer if this is an iframe 3332 3332 m_clipLayer = GraphicsLayer::create(graphicsLayerFactory(), *this); 3333 #if ndef NDEBUG3333 #if ENABLE(TREE_DEBUGGING) 3334 3334 m_clipLayer->setName("frame clipping"); 3335 3335 #endif … … 3337 3337 3338 3338 m_scrollLayer = GraphicsLayer::create(graphicsLayerFactory(), *this); 3339 #if ndef NDEBUG3339 #if ENABLE(TREE_DEBUGGING) 3340 3340 m_scrollLayer->setName("frame scrolling"); 3341 3341 #endif -
trunk/Source/WebCore/rendering/RenderObject.cpp
r180767 r181139 1352 1352 } 1353 1353 1354 #if ndef NDEBUG1354 #if ENABLE(TREE_DEBUGGING) 1355 1355 1356 1356 static void showRenderTreeLegend() … … 2498 2498 } // namespace WebCore 2499 2499 2500 #if ndef NDEBUG2500 #if ENABLE(TREE_DEBUGGING) 2501 2501 2502 2502 void showNodeTree(const WebCore::RenderObject* object) -
trunk/Source/WebCore/rendering/RenderObject.h
r180574 r181139 137 137 #endif 138 138 139 #ifndef NDEBUG140 const int showTreeCharacterOffset = 39;141 #endif142 143 139 // Base class for all rendering tree objects. 144 140 class RenderObject : public CachedImageClient { … … 272 268 273 269 public: 274 #if ndef NDEBUG270 #if ENABLE(TREE_DEBUGGING) 275 271 void showNodeTreeForThis() const; 276 272 void showRenderTreeForThis() const; … … 1112 1108 SPECIALIZE_TYPE_TRAITS_END() 1113 1109 1114 #if ndef NDEBUG1110 #if ENABLE(TREE_DEBUGGING) 1115 1111 // Outside the WebCore namespace for ease of invocation from gdb. 1116 1112 void showNodeTree(const WebCore::RenderObject*); -
trunk/Source/WebCore/rendering/RootInlineBox.cpp
r180815 r181139 1153 1153 } 1154 1154 1155 #if ndef NDEBUG1155 #if ENABLE(TREE_DEBUGGING) 1156 1156 const char* RootInlineBox::boxName() const 1157 1157 { -
trunk/Source/WebCore/rendering/RootInlineBox.h
r180150 r181139 191 191 Node* getLogicalEndBoxWithNode(InlineBox*&) const; 192 192 193 #if ndef NDEBUG193 #if ENABLE(TREE_DEBUGGING) 194 194 virtual const char* boxName() const override final; 195 195 #endif -
trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp
r178510 r181139 180 180 } 181 181 182 #if ndef NDEBUG182 #if ENABLE(TREE_DEBUGGING) 183 183 static void printPrefix(int& printedCharacters, int depth) 184 184 { -
trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.h
r174370 r181139 64 64 LayoutUnit baselineFromFlow(const RenderBlockFlow&); 65 65 66 #if ndef NDEBUG66 #if ENABLE(TREE_DEBUGGING) 67 67 void showLineLayoutForFlow(const RenderBlockFlow&, const Layout&, int depth); 68 68 #endif -
trunk/Source/WebCore/rendering/svg/SVGResources.cpp
r173970 r181139 32 32 #include "SVGURIReference.h" 33 33 34 #if ndef NDEBUG34 #if ENABLE(TREE_DEBUGGING) 35 35 #include <stdio.h> 36 36 #endif … … 613 613 } 614 614 615 #if ndef NDEBUG615 #if ENABLE(TREE_DEBUGGING) 616 616 void SVGResources::dump(const RenderObject* object) 617 617 { -
trunk/Source/WebCore/rendering/svg/SVGResources.h
r173397 r181139 72 72 void resourceDestroyed(RenderSVGResourceContainer&); 73 73 74 #if ndef NDEBUG74 #if ENABLE(TREE_DEBUGGING) 75 75 void dump(const RenderObject*); 76 76 #endif
Note:
See TracChangeset
for help on using the changeset viewer.