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

List:       kde-commits
Subject:    Re: kdelibs/khtml/html
From:       Peter Kelly <pmk () post ! com>
Date:       2000-06-26 13:54:37
[Download RAW message or body]

Lars Knoll wrote:

> On Mon, 26 Jun 2000, Peter Kelly wrote:
> 
> > But I ran into trouble getting it to decide what parts of the page need
> > updating - e.g. if you just change an image, or the colour of some text,
> > you do not need to relayout the page (although some recalculating is
> > needed in the appropriate rendering object), and then just the part of
> > the window that was affected is updated.
> 
> Hmmm... We could do it in a way similar to the fast image updating Waldo
> implemented in the image cache. Add all changed DOM elements to a
> list. For these elements (and it's children) reparse the Style object
> first without relayouting. Set the layouted flag to false for all
> these objects. After that call updateSize() on all of them. Advantage: The
> updateSize() call relayouts the part of the rendering tree that is
> influenced by the change. This might already group together some of the
> relayoutings (for example all images that are changed in one paragraph
> will get relayouted together), so that some of the updateSize() calls will
> rturn immediately, since layouting has already been done on them.
> 
> Does that sound reasonable?

Sounds good. I will have a look at it.

> 
> Lars

-- 
Peter Kelly
pmk@post.com

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

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