[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    investigating bug #66722
From:       bj () altern ! org
Date:       2004-06-23 12:36:54
Message-ID: 200406231442.57341.bj () altern ! org
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic