[PATCH] Fix KHTML redrawing problems

Roman Jarosz kedgedev at centrum.cz
Sun Feb 3 13:49:06 GMT 2008


Hi, 

KHTML has some really annoying redrawing bugs when the view widget is resized before paint event.

This is because KHTMLView assumes for static widgets that render widget is always at position 0,0,
but for instance when the scroll bars are about to be shown then QScrollArea updates render widget
and changes its position if it's needed. (in QScrollAreaPrivate::updateScrollBars(), the move is called
in QScrollAreaPrivate::updateWidgetPosition() )

When this happens KHTMLView sets it back to 0,0 but KHtmlView isn't changing it back on each occasion
and then the paint position is wrong. This patch fix it by moving the render widget back to 0,0.

This bug affects Kopete.

Can I commit this?

Regards,
Roman Jarosz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixkhtml2.diff
Type: application/octet-stream
Size: 1060 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080203/78d0d63d/attachment.obj>


More information about the kde-core-devel mailing list