[Webkit-unassigned] [Bug 22842] [Gtk] Top offsets of elements in DumpRenderTree are incorrect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 13 04:33:39 PST 2008


------- Comment #1 from zandobersek at gmail.com  2008-12-13 04:33 PDT -------
Created an attachment (id=25997)
 --> (https://bugs.webkit.org/attachment.cgi?id=25997&action=view)
Patch for reproducing the problem

This patch works with tests for SVG dynamic updates.

Through all these tests, the two outputs seem to be constant:
- when viewing any test in GtkLauncher, top offset is 66,
- when running any test in DRT, top offset is 311.
Left offset is always 8.

The difference occurs in RenderObject's offsetTop function, more precisely in
this iteration[1] - it goes through one loop, in which curr is a RenderObject
with #document node and is not a table row.
His yPos() is then added to y. In GtkLauncher, 58 is added to y, while in DRT y
is increased by 303.
y then increases to the final value when offsetPar is recognized as a body and
adds its yPos() (which equals to 8) to the y variable.


Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list