Re: [webkit-dev] Add custom event into Webkit

2009-04-10 Thread LOUAZE Tony Ext VIACCESS-DOS
Hi, It seems Ross and I have the same problem. Of course, we can call a JS function from external code by using Webkit API. But it's not the proper way to implement events in JS. I'd like to use the AddEventListener(on_special_event, on_event) method to add my custom event on_special_event.

Re: [webkit-dev] from Farhad, about WebKit

2009-04-10 Thread g_siddu
Hi Farhad, By saying 4 branches are you referring ports ? Assuming yes the ports are mac, win, Gtk and Qt. -siddu Abu Farhad wrote: Dear Sir, I have a question about WebKit. What are the 4 branches of WebKit that i can go for any one branch? sincerely ~Farhad

Re: [webkit-dev] How to write plug-ins in webkit?

2009-04-10 Thread David Kilzer
Apple documentation for NSAPI (Netscape) plug-ins and Web (Objective-C) plug-ins: http://developer.apple.com/DOCUMENTATION/InternetWeb/Conceptual/WebKit_PluginProgTopic/WebKitPluginTopics.html Example/test code in the WebKit source tree:

[webkit-dev] An idea to improve render performance by caching image-data's intrinsic size

2009-04-10 Thread Johnny Ding
Hi all, I have an idea about caching image's intrinsic size to improve render performance. We know the dynamic size change will cause the page re-layout when rendering HTML pages. It hurts render performance. The size change of images are usual cases for this issue. In HTML pages, The img tag

Re: [webkit-dev] HTMLSelectElement and namedItem()

2009-04-10 Thread David Moore
According to the HTML5 spec we should be returning a node collection if there are multiple matches, both for HTMLSelectElement and HTMLOptionsCollection. So neither Safari or chromium is in conformance to this. Safari always returns null for named elements in HTMLSelectElement no matter how many

Re: [webkit-dev] An idea to improve render performance by caching image-data's intrinsic size

2009-04-10 Thread David Hyatt
On Apr 10, 2009, at 8:51 AM, Johnny Ding wrote: Hi all, I have an idea about caching image's intrinsic size to improve render performance. We have discussed this idea in the past and discarded it for a number of reasons, mainly: (1) Most Web pages at this point specify an explicit size

Re: [webkit-dev] An idea to improve render performance by caching image-data's intrinsic size

2009-04-10 Thread David Hyatt
I forgot to mention the case where images might be disk cached but the size is reported asynchronously. WebKit will not do a layout before the 250ms mark, so when you're dealing with pages that mostly come from the cache, the layouts that end up being requested by all of the images

Re: [webkit-dev] Allowing webkit clients to extend XHR security policy

2009-04-10 Thread Aaron Boodman
On Thu, Apr 9, 2009 at 9:50 PM, David Levin le...@google.com wrote: On Thu, Apr 9, 2009 at 9:03 PM, Alexey Proskuryakov a...@webkit.org wrote: On 09.04.2009, at 22:38, Aaron Boodman wrote: The local scheme feature is actually more powerful than just XHR If you only need extensions to do

[webkit-dev] WebKit caching

2009-04-10 Thread Adam Thorsen
I would like to prevent a WebKit WebView instance in Cocoa from caching certain content. I've attempted to prevent this using several approaches, including: 1. Overriding the NSURLCache cachedResponseForRequest and cachedResponse forRequest methods 2. Handling -(NSURLRequest

Re: [webkit-dev] An idea to improve render performance by caching image-data's intrinsic size

2009-04-10 Thread Maciej Stachowiak
On Apr 10, 2009, at 6:51 AM, Johnny Ding wrote: Hi all, I have an idea about caching image's intrinsic size to improve render performance. We know the dynamic size change will cause the page re-layout when rendering HTML pages. It hurts render performance. The size change of images are

Re: [webkit-dev] WebKit caching

2009-04-10 Thread Darin Adler
There are three different caches involved in WebKit on Mac OS X. A) The resource cache in the NSURL networking layer, which caches both in memory and on disk. B) The resource cache inside WebCore, which caches in memory. C) The page cache in WebCore, a higher level cache which

Re: [webkit-dev] WebKit caching

2009-04-10 Thread David Kilzer
Why don't you just send a couple HTTP headers with the JavaScript and CSS resources when they leave your web server: Pragma: no-cache Cache-Control: no-cache Or do you need a generalized solution for any web site? Note that this may not work except in recent nightly builds due to