[webkit-dev] How to compile testbindings under WebCore/bridge?

2009-06-01 Thread Harry Zhang
Hi all, i'm looking for the methods to bridge C object into JS runtime, then i found the test cases under WebCore/bridge which seems to be a good sample for me, because i found similar codes in Qt port, so i want to try out testbindings.cpp to see whether the C bridge works. However, i cannot use

Re: [webkit-dev] Webkit capture web page content API

2009-06-01 Thread webkitUser
Can this be done using only Webkit API(without cocoa)? Am basically trying to capture the web page content on windows and would like to do it with Webkit. Darin Adler wrote: On May 13, 2009, at 8:59 AM, Lucius Fox wrote: But if Webkit is not involved. That means it can not capture the

[webkit-dev] JSObjectMakeFunction question

2009-06-01 Thread Jack Wootton
Hi all, I'm attempting to use the function JSObjectMakeFunction described here: http://gemma.apple.com/documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/JSObjectRef/index.html I would like to call a JavaScript function from C. I assume the following is required: 1. Create a function

Re: [webkit-dev] JSObjectMakeFunction question

2009-06-01 Thread Kalle Vahlman
2009/6/1 Jack Wootton jackwoot...@gmail.com: Hi all, Hi! I'm attempting to use the function JSObjectMakeFunction described here: http://gemma.apple.com/documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/JSObjectRef/index.html I would like to call a JavaScript function from C. I

Re: [webkit-dev] SharedWorkers alternate design

2009-06-01 Thread Alexey Proskuryakov
22.05.2009, в 3:20, Drew Wilson написал(а): SharedWorkers have explicit access to the ApplicationCache APIs, while dedicated Workers merely inherit the ApplicationCache from their parent window. What is the use case for this? It doesn't seem useful to me - to invoke update explicitly,

Re: [webkit-dev] JSObjectMakeFunction question

2009-06-01 Thread Jack Wootton
It seems some casting is required for this though? JSValueRef JSObjectCallAsFunction( JSContextRef ctx, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception); The above function accepts a JSObjectRef

Re: [webkit-dev] JSObjectMakeFunction question

2009-06-01 Thread Darin Adler
On Jun 1, 2009, at 8:29 AM, Jack Wootton wrote: It seems some casting is required for this though? Yes, conversion to JSObjectRef is needed, although you don’t have to do any casting. You can call JSValueToObject to turn the value into an object, making the appropriate object wrapper

Re: [webkit-dev] JSObjectMakeFunction question

2009-06-01 Thread Maciej Stachowiak
On Jun 1, 2009, at 8:29 AM, Jack Wootton wrote: It seems some casting is required for this though? JSValueRef JSObjectCallAsFunction( [snip] The above function accepts a JSObjectRef object. However JSValueRef JSObjectGetProperty( [snip] returns JSValueRef Setting aside the

Re: [webkit-dev] JSObjectMakeFunction question

2009-06-01 Thread Maciej Stachowiak
On Jun 1, 2009, at 8:55 AM, Darin Adler wrote: On Jun 1, 2009, at 8:29 AM, Jack Wootton wrote: It seems some casting is required for this though? Yes, conversion to JSObjectRef is needed, although you don’t have to do any casting. You can call JSValueToObject to turn the value into an

Re: [webkit-dev] Rendering Video using video overlay rather than on a Cairo surface (Graphics overlay)

2009-06-01 Thread Simon Fraser
On Jun 1, 2009, at 12:47 AM, Sriram Neelakandan wrote: On Sat, May 30, 2009 at 9:22 PM, Simon Fraser simon.fra...@apple.com wrote: Something else you should consider here is ways that the video can be clipped and transformed. Thanks Simon, I forgot that Any solution which naively

Re: [webkit-dev] How to interrupt Webkit Dump Render Tree output

2009-06-01 Thread Lucius Fox
Thank you. So to get absolute co-ordinates of each Render Object, I need to do something like: int absolute_x = 0; int absolute_y = 0; parent = renderObject.getParent() while (parent != RenderBody) { absolute_x += parent.getX(); absolute_y += parent.getY(); } Is that right? Thank

Re: [webkit-dev] SharedWorkers alternate design

2009-06-01 Thread Drew Wilson
We should probably discuss this point on the whatwg list, but I'll give you my understanding of why this is desirable: 1) Since SharedWorkers aren't explicitly tied to a specific Document, it doesn't make sense to have them possibly get loaded from an out-of-date version of the app cache. If you

Re: [webkit-dev] SharedWorkers alternate design

2009-06-01 Thread Alexey Proskuryakov
01.06.2009, в 22:37, Drew Wilson написал(а): 1) Since SharedWorkers aren't explicitly tied to a specific Document, it doesn't make sense to have them possibly get loaded from an out-of-date version of the app cache. If you have two separate documents running from different caches, it's

Re: [webkit-dev] SharedWorkers alternate design

2009-06-01 Thread Drew Wilson
2009/6/1 Alexey Proskuryakov a...@webkit.org 01.06.2009, в 22:37, Drew Wilson написал(а): 1) Since SharedWorkers aren't explicitly tied to a specific Document, it doesn't make sense to have them possibly get loaded from an out-of-date version of the app cache. If you have two separate

Re: [webkit-dev] Universal build options

2009-06-01 Thread Mark Rowe
On 2009-06-01, at 11:45, Moray Taylor wrote: Hi, I've searched high and low for an answer to this, so many apologies if it's a FAQ, but I can't find a resolution anywhere. I've noticed the --universal build option for WebKit no longer works, how do I do a universal build now? The

Re: [webkit-dev] embedding WebKit in MFC application

2009-06-01 Thread Brent Fulgham
Hi Martin, I have updated my MFC port of the Apple example program 'CallJS'. You can grab this example project (http://files.me.com/bfulgham/socw2n). This might be more convenient because it includes a built copy of WebKit and the various support DLLs. It uses the newer API call

Re: [webkit-dev] SharedWorkers alternate design

2009-06-01 Thread Michael Nordman
How workers and appcaches interact has been discussed on the WHATWG list. Ian's Worker feedback message on 3/27/09 tried to tie things up for the time being. I think where he left things was a reasonable stepping stone, although the answers to the questions being asked here about updates were not

[webkit-dev] Security Origins

2009-06-01 Thread Jeremy Orlow
I have 2 questions about SecurityOrigins. First of all, in SecurityOrigin::databaseIdentifier() (in http://trac.webkit.org/browser/trunk/WebCore/page/SecurityOrigin.h) the following comment appears: Serialize the security origin for storage in the database. This format is deprecated and should

Re: [webkit-dev] SharedWorkers alternate design

2009-06-01 Thread Drew Wilson
One more thing I'd follow up with is if we were to have a SharedWorker just inherit an applicationcache from the first document that creates it, what happens after that document closes? How can the SharedWorker update its application cache if an update becomes available, since the only document

Re: [webkit-dev] Security Origins

2009-06-01 Thread Adam Barth
Hi Jeremy, Some of this has evolved and could likely be cleaned up. 2009/6/1 Jeremy Orlow jor...@chromium.org: First of all, in SecurityOrigin::databaseIdentifier() (in http://trac.webkit.org/browser/trunk/WebCore/page/SecurityOrigin.h) the following comment appears: Serialize the security

Re: [webkit-dev] Security Origins

2009-06-01 Thread Sam Weinig
On Mon, Jun 1, 2009 at 3:50 PM, Jeremy Orlow jor...@chromium.org wrote: I have 2 questions about SecurityOrigins. First of all, in SecurityOrigin::databaseIdentifier() (in http://trac.webkit.org/browser/trunk/WebCore/page/SecurityOrigin.h) the following comment appears: Serialize the