Re: [webkit-dev] How to find out how many children in a RenderObject

2009-06-26 Thread David Hyatt
On Jun 26, 2009, at 12:59 AM, n179911 wrote: Can you please tell me how can I find out how many children in a RenderObject? In RenderObject, I only see these method, I can't find a way which return the number of children from a given RenderObject RenderObject* childAt(unsigned) const; RenderO

Re: [webkit-dev] How to find out how many children in a RenderObject

2009-06-25 Thread Johnny Ding
Not sure whether the following way fits your need or not.1. get DOM node via RenderObject->node(); 2. walk through all child nodes of that DOM node via Node interface, such as (child = node->firstChild(); child; child = child->nextSibling()) 3. get child's RenderObject via child->renderer()? 2009

[webkit-dev] How to find out how many children in a RenderObject

2009-06-25 Thread n179911
Can you please tell me how can I find out how many children in a RenderObject? In RenderObject, I only see these method, I can't find a way which return the number of children from a given RenderObject RenderObject* childAt(unsigned) const; RenderObject* firstLeafChild() const; RenderObject* la