Re: [webkit-dev] javascriptcore: explicitly call default getProperties function?
Hi Michael. One solution would be to maintain a hash or bitmap indicating which lazy properties you had allocated so far: JSValueRef GetProperty(JSContextRef ctx, JSObjectRef obj, JSStringRef prop, JSValueRef* exception) { if (!bitmapContains(prop)) { JSValueRef lazy_loaded = lazy_load(...); JSObjectSetProperty(ctx, obj, prop, lazy_loaded, ...) } return NULL; // Forward the property request to our parent class, which holds the property we set through JSObjectSetProperty. } The hash / bitmap can be stored in the JSObjectRef, using the JSObjectSetPrivate API. Geoff On Feb 25, 2008, at 4:31 PM, Michael Bieniosek wrote: Hi, I have a situation where I want to do lazy-loading of a javascript object's properties. I'm using the C API, in particular the getProperty callback. I want to write code that looks like: JSValueRef GetProperty(JSContextRef ctx, JSObjectRef obj, JSStringRef prop, JSValueRef* exception) { if (!JSValueHasProperty(ctx, obj, prop)) { JSValueRef lazy_loaded = lazy_load(...); JSObjectSetProperty(ctx, obj, prop, lazy_loaded, ...) return lazy_loaded; } else { return JSObjectGetProperty(ctx, obj, prop, exception); } } That is, I want use obj as a cache for my lazy_load function. This code doesn't work though, because the calls to JSObjectHasProperty and JSObjectGetProperty recursively call GetProperty. Is there a way to make this work? Thanks, Michael ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WIN XP Build Error
Are those of you experiencing the autoversion.h problem using TortoiseSVN to retrieve the sources? -Brent ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Webkit has tidy
Hy all I'm needing to transform any web page into a XML, the XHTML isn't really need but would be one advantage. So I need something more then tidy, it would be nice to run some JavaScript before collecting the DOM. Having the DOM, it shall be simple to get a XML or even better a static XHTML. Do you have something simple to do this automatically? I can code something but, is it possible to give me a path to do it? Best Regards Marcos Rebelo -- Marcos Rebelo http://oleber.freehostia.com ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WIN XP Build Error
Yes, I use TortoiseSVN. -Dan On Tue, Feb 26, 2008 at 9:36 PM, Brent Fulgham [EMAIL PROTECTED] wrote: Are those of you experiencing the autoversion.h problem using TortoiseSVN to retrieve the sources? -Brent ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] WIN XP Build Error
To add some more information: In the past, I always had to run d2u auto-version.sh to get the build to work. If you don't do this the script won't run at all. With the recent problem, the script does run (after running the above d2u command), but seems to introduce some bad line ending in the resultant autoversion.h file as indicated in the error below. Cheers, Dan On Tue, Feb 26, 2008 at 12:50 PM, Daniel Zucker [EMAIL PROTECTED] wrote: Yes, I use TortoiseSVN. -Dan On Tue, Feb 26, 2008 at 9:36 PM, Brent Fulgham [EMAIL PROTECTED] wrote: Are those of you experiencing the autoversion.h problem using TortoiseSVN to retrieve the sources? -Brent ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Google Summer of Code, Proposal
On Feb 25, 2008, at 11:31 PM, Eric Seidel wrote: I think WebKit should consider participating in Google's Summer of Code this year. To facilitate such, I have created a wiki page, where potential mentors, as well as project ideas can be placed: http://trac.webkit.org/projects/webkit/wiki/Google%20Summer%20of%20Code%202008 I have added a couple project ideas of my own. I have not signed up as a mentor due to my status as a Google employee and the clause Google employees, interns, contractors, and family members are ineligible to participate. I will have to check if I'm allowed to mentor, but based on that statement, I believe not. I think that statement applies only to student participants, not to mentoring organizations or mentors. - Maciej ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev