[Webkit-unassigned] [Bug 19094] offsetTop is wrong in cell <td>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 2 16:12:51 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=19094


kruepl at dbai.tuwien.ac.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kruepl at dbai.tuwien.ac.at




------- Comment #2 from kruepl at dbai.tuwien.ac.at  2008-08-02 16:12 PDT -------
This bug hit me when I wanted to extract table cell coordinates (latest SVN,
OSX 10.5.4).

Quite strangely, offsetTop lies intentionally:

RenderTableCell.h, line100:

    // Lie about position to outside observers.
    virtual int yPos() const { return m_y + m_topExtra; }

My patch corrects the lie by subtracting the borderTopExtra again. It breaks
the regression, 
fast/dom/Element/offsetTop-table-cell.html explicitly asks for wrong values. I
think this 
test is just wrong and should also be patched.


-- 
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