Rename RenderObject::showTree() and showTreeForThis() to showNodeTree*().
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Aug 2014 01:52:42 +0000 (01:52 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Aug 2014 01:52:42 +0000 (01:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=136238

Reviewed by Simon Fraser.

showNodeTree()/showNodeTreeForThis() reflects the functionality better.

No change in functionality.

* rendering/InlineBox.cpp:
(WebCore::InlineBox::showNodeTreeForThis):
(showNodeTree):
(WebCore::InlineBox::showTreeForThis): Deleted.
(showTree): Deleted.
* rendering/InlineBox.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::showNodeTreeForThis):
(showNodeTree):
(WebCore::RenderObject::showTreeForThis): Deleted.
(showTree): Deleted.
* rendering/RenderObject.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172947 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/InlineBox.cpp
Source/WebCore/rendering/InlineBox.h
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderObject.h

index 601e8a7..0f12609 100644 (file)
@@ -1,3 +1,27 @@
+2014-08-25  Zalan Bujtas  <zalan@apple.com>
+
+        Rename RenderObject::showTree() and showTreeForThis() to showNodeTree*().
+        https://bugs.webkit.org/show_bug.cgi?id=136238
+
+        Reviewed by Simon Fraser.
+
+        showNodeTree()/showNodeTreeForThis() reflects the functionality better.
+
+        No change in functionality.
+
+        * rendering/InlineBox.cpp:
+        (WebCore::InlineBox::showNodeTreeForThis):
+        (showNodeTree):
+        (WebCore::InlineBox::showTreeForThis): Deleted.
+        (showTree): Deleted.
+        * rendering/InlineBox.h:
+        * rendering/RenderObject.cpp:
+        (WebCore::RenderObject::showNodeTreeForThis):
+        (showNodeTree):
+        (WebCore::RenderObject::showTreeForThis): Deleted.
+        (showTree): Deleted.
+        * rendering/RenderObject.h:
+
 2014-08-25  Antti Koivisto  <antti@apple.com>
 
         Don't pass priority as parameter to ResourceLoadScheduler
index 2f3cec4..23e85a8 100644 (file)
@@ -91,9 +91,9 @@ const char* InlineBox::boxName() const
     return "InlineBox";
 }
 
-void InlineBox::showTreeForThis() const
+void InlineBox::showNodeTreeForThis() const
 {
-    m_renderer.showTreeForThis();
+    m_renderer.showNodeTreeForThis();
 }
 
 void InlineBox::showLineTreeForThis() const
@@ -334,10 +334,10 @@ LayoutPoint InlineBox::flipForWritingMode(const LayoutPoint& point)
 
 #ifndef NDEBUG
 
-void showTree(const WebCore::InlineBox* b)
+void showNodeTree(const WebCore::InlineBox* b)
 {
     if (b)
-        b->showTreeForThis();
+        b->showNodeTreeForThis();
 }
 
 void showLineTree(const WebCore::InlineBox* b)
index 7ad9413..307417f 100644 (file)
@@ -72,7 +72,7 @@ public:
     virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) = 0;
 
 #ifndef NDEBUG
-    void showTreeForThis() const;
+    void showNodeTreeForThis() const;
     void showLineTreeForThis() const;
     
     virtual void showBox(int = 0) const;
@@ -441,7 +441,7 @@ inline void InlineBox::assertNotDeleted() const
 
 #ifndef NDEBUG
 // Outside the WebCore namespace for ease of invocation from gdb.
-void showTree(const WebCore::InlineBox*);
+void showNodeTree(const WebCore::InlineBox*);
 void showLineTree(const WebCore::InlineBox*);
 #endif
 
index 05b642c..508dd6a 100644 (file)
@@ -1410,7 +1410,7 @@ void RenderObject::computeFloatRectForRepaint(const RenderLayerModelObject*, Flo
 
 #ifndef NDEBUG
 
-void RenderObject::showTreeForThis() const
+void RenderObject::showNodeTreeForThis() const
 {
     if (node())
         node()->showTreeForThis();
@@ -2510,10 +2510,10 @@ RenderNamedFlowFragment* RenderObject::currentRenderNamedFlowFragment() const
 
 #ifndef NDEBUG
 
-void showTree(const WebCore::RenderObject* object)
+void showNodeTree(const WebCore::RenderObject* object)
 {
     if (object)
-        object->showTreeForThis();
+        object->showNodeTreeForThis();
 }
 
 void showLineTree(const WebCore::RenderObject* object)
index fea9548..4d9ea59 100644 (file)
@@ -281,7 +281,7 @@ private:
 
 public:
 #ifndef NDEBUG
-    void showTreeForThis() const;
+    void showNodeTreeForThis() const;
     void showRenderTreeForThis() const;
     void showLineTreeForThis() const;
 
@@ -1139,7 +1139,7 @@ inline bool RenderObject::backgroundIsKnownToBeObscured()
 
 #ifndef NDEBUG
 // Outside the WebCore namespace for ease of invocation from gdb.
-void showTree(const WebCore::RenderObject*);
+void showNodeTree(const WebCore::RenderObject*);
 void showLineTree(const WebCore::RenderObject*);
 void showRenderTree(const WebCore::RenderObject* object1);
 // We don't make object2 an optional parameter so that showRenderTree