[webkit-help] Question about DumpRenderTree result

silverburgh silverburgh.meryl at gmail.com
Mon Mar 8 13:00:50 PST 2010


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.


More information about the webkit-help mailing list