super-secret yPos() lie that table cells do. Use m_y instead of yPos().
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::nodeAtPoint):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8076
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-11-23 David Hyatt <hyatt@apple.com>
+
+ Hit testing in table cells with top/bottom space from vertical alignment didn't work. I forgot about the
+ super-secret yPos() lie that table cells do. Use m_y instead of yPos().
+
+ * khtml/rendering/render_block.cpp:
+ (khtml::RenderBlock::nodeAtPoint):
+
2004-11-22 David Hyatt <hyatt@apple.com>
Make sure you can use document.createElement to make a <canvas> element.
{
bool inlineFlow = isInlineFlow();
- int tx = _tx + xPos();
- int ty = _ty + yPos();
+ int tx = _tx + m_x;
+ int ty = _ty + m_y;
if (!inlineFlow && !isRoot()) {
// Check if we need to do anything at all with this block.