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

List:       kfm-devel
Subject:    Re: patch + examples, change frameset.rows from js
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-12-20 23:08:52
[Download RAW message or body]

On Thursday 20 December 2001 23:59, koos.vriezen@xs4all.nl wrote:
> So updateRendering is called on an inner document (as the heap goes up).
> Both documents return NULL as parentNode() and I couldn't find a way to
> get to this outer(=frameset) document.

You can do that using the KHTMLPart's parentPart(), and then asking for
the document of that part.

BUT.... there's nothing that can tell us that it's the parent document
that got modified. A frame could also modify another frame!
I think the only option we have is to go to the most-toplevel khtmlpart
(the parent frameset here, but framesets can also be nested!),
and from there call updateRendering() on all child khtml parts,
recursively (i.e. all child frames and framesets). Just in case the JS script
changed anything in another frame/frameset.

Frames (and the fact that they all have their HTML document)
are giving me quite some headaches at the moment too
(#36296, but it's not about the same thing).

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://www.kde.org/people/david.html (my real webpage is down)
KDE 3.0: Konquering the Desktops
[prev in list] [next in list] [prev in thread] [next in thread] 

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