investigating bug #66722

bj at altern.org bj at altern.org
Wed Jun 23 15:42:56 BST 2004


I've been investigating a bit on the 66722 bug: image titles are not shown
when using imagemaps. (http://bugs.kde.org/show_bug.cgi?id=66722)

I found out that the problem is that the tooltip is correctly build, but
 there is an error in the top left coordinates of the bounding box.
The bounding box having wrong coordinates, the cursor position is outside of
it when the tip should be displayed, so it does not appear.

The problem is comming from the
QRect HTMLAreaElementImpl::getRect() routine in html_imageimpl.cpp around
 line 390.
To determine the bounding box of the imagemap, it calls:
 if (!parentNode()->renderer()->absolutePosition(dx, dy))

The absolutePosition routine is in render_box.cpp, line 520 and does the
following:

    RenderObject *o = container();
    if( o && o->absolutePosition(xPos, yPos, f))

I couldn't get any further. It looks like it is using the wrong container to
calculate the coordinates, but I am not familiar enough with the code.
If anybody has a clue, I will be glad to help fixing this issue!

regards




More information about the kfm-devel mailing list