[webkit-help] Question about DumpRenderTree result
Dmitry M
dmitrym at gmail.com
Mon Mar 8 13:07:40 PST 2010
These coordinates are relative to the coordinates of the containing
block. A good way to understand how it works is to create your own
simple HTML layout pipe it through DumpRenderTree. Also take a look at
this: http://webkit.org/blog/114/webcore-rendering-i-the-basics/
HTH,
-D
On Mon, Mar 8, 2010 at 1:00 PM, silverburgh <silverburgh.meryl at gmail.com> wrote:
> Hi,
>
> I use DumpRenderTree to dump out the render tree for http://www.nytimes.com.
>
> Here is dump render tree result of a table near the middle of the site
> (the one said 'Opinion', 'Theatre', 'U.S.':
> What I don't understand is it shows the x co-ordinate as 1 or 0, but
> when I click on the screen, it is not 1 or 0, it is much further to
> right of the screen (~100 px).
> Can you please help me understand the co-ordinates of the DumpRenderTree output?
>
> layer at (1,2452) size 970x387 scrollWidth 1943 scrollHeight 388
> RenderBlock {DIV} at (0,33) size 970x387
> RenderTable {TABLE} at (0,0) size 1943x387 [bgcolor=#FFFFFF]
> RenderTableSection {TBODY} at (0,0) size 1943x387
> RenderTableRow {TR} at (0,0) size 1943x387
> RenderTableCell {TD} at (0,0) size 161x260 [r=0 c=0 rs=1 cs=1]
> RenderBlock {DIV} at (0,13) size 161x236
> RenderBlock {H6} at (5,0) size 151x14 [color=#000000]
> RenderInline {A} at (0,0) size 90x10
> RenderText {#text} at (0,2) size 90x10
> text run at (0,2) width 90: "OPINION \x{BB}"
> RenderText {#text} at (0,0) size 0x0
>
> Thank you.
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
More information about the webkit-help
mailing list