Re: [webkit-dev] saving the current state of webkit

2009-07-13 Thread RDC
You can't restore a page from only the serialized DOM. The CachedPage class may help. I have looked at CachedPage.h, but I don't see any method to serialize the cached page to files and then de-serialize it later. Can you please tell me how can I do that with cached page? I'm not sure CachedP

Re: [webkit-dev] Webkit based HTML to PDF converter

2009-07-09 Thread RDC
Hi Ashish, I have a requirement to create a MarkUp(HTML) to PDF generator. The mentioned component is to be deployed as a java class API for a cloud computing service on Linux platform. I want to use WebKit for my HTML /MarkUp rendering and then use that rendered output to convert to PDF.

Re: [webkit-dev] Detecting a finished paint via JavaScript

2009-07-09 Thread RDC
While this is not a perfect solution, a common technique is to call (from onload) a DOM method like offsetHeight that forces layout to run. That way the bulk of the work required to paint is forced to happen before the benchmark considers the page load complete. > > This still omits the cost o

Re: [webkit-dev] Detecting a finished paint via JavaScript

2009-07-08 Thread RDC
Would you be willing elaborate on why you want this? Of course; I would like it for benchmarking page rendering times--something I believe would be possible with Web Inspector, but I'm after a cross-browser way of achieving it. At the moment I have a benchmark that uses the onLoad event to m

[webkit-dev] Detecting a finished paint via JavaScript

2009-07-08 Thread RDC
Hi all, Firstly, apologies if this should be directed at webkit-help, rather than webkit-dev, but it seems pertinent to the internals of WebKit. I'm interested in detecting that a page has finished painting via JavaScript; something like Mozilla have implemented in Firefox via the mozAfterPa