[webkit-dev] WebKit does not refresh cached resource

2009-03-17 Thread halaiwa
Hello, I am using Windows port of WebKit on CFNetwork taken approximately half a year ago from trunk. I faced with the following problem: when I am loading a resource from URL it is stored in WebKit's/CFNetwork's cache, after updating it on server's side WebKit continues to load it from cache and

Re: [webkit-dev] x86-64 JIT

2009-03-17 Thread David Kilzer
Which version of gcc are you using? Older versions (think gcc-3.x) are known to have issues compiling JavaScriptCore, although I don't recall reading about this particular issue. Dave - Original Message > From: Mike Hommey > To: webkit-dev@lists.webkit.org > Sent: Tuesday, March 1

Re: [webkit-dev] A question regarding to JavaScriptCore's garbage collection mechanism.

2009-03-17 Thread Zhe Su
Thanks. I'll try to trace it to see what exactly happens. On Wed, Mar 18, 2009 at 2:34 AM, Geoffrey Garen wrote: > This code was tested against webkit svn. Anyone can help me explain this >> behavior? Is it a bug of JavaScriptCore? >> > > Most likely, the conservative nature of the garbage colle

Re: [webkit-dev] x86-64 JIT

2009-03-17 Thread Maciej Stachowiak
On Mar 17, 2009, at 1:51 PM, Mike Hommey wrote: Hi, I was taking a quick look at the JIT code and also gave a shot at forcing a build of the x86-64 code under Linux. The main problem right now is the following: ../JavaScriptCore/jit/JITArithmetic.cpp:664: error: cast from 'JSC::Structure*'

Re: [webkit-dev] How to use JavaScriptCore in my own project

2009-03-17 Thread Darin Adler
On Mar 17, 2009, at 1:24 PM, Gustaw Smolarczyk wrote: I want to use JavaScriptCore as script engine in my own project in C+ +, but I don't know how to do that right way. There are JavaScriptCore, JavaScriptGlue, etc in WebKit source and I don't know how to use JavaScript engine from WebKit s

[webkit-dev] x86-64 JIT

2009-03-17 Thread Mike Hommey
Hi, I was taking a quick look at the JIT code and also gave a shot at forcing a build of the x86-64 code under Linux. The main problem right now is the following: ../JavaScriptCore/jit/JITArithmetic.cpp:664: error: cast from 'JSC::Structure*' to 'unsigned int' loses precision ../JavaScriptCore/j

[webkit-dev] How to use JavaScriptCore in my own project

2009-03-17 Thread Gustaw Smolarczyk
Hello. I want to use JavaScriptCore as script engine in my own project in C++, but I don't know how to do that right way. There are JavaScriptCore, JavaScriptGlue, etc in WebKit source and I don't know how to use JavaScript engine from WebKit similar way I do it using e.g. QtScript. Any documenta

Re: [webkit-dev] A question regarding to JavaScriptCore's garbage collection mechanism.

2009-03-17 Thread Geoffrey Garen
This code was tested against webkit svn. Anyone can help me explain this behavior? Is it a bug of JavaScriptCore? Most likely, the conservative nature of the garbage collector prevents the function from being reclaimed in this case. You can step through JSC::Heap::collect() to see exactly w

Re: [webkit-dev] where strore "html widget" name and id

2009-03-17 Thread David Kilzer
In WebCore/dom/Element.h, there is a member variable named 'nameAttrMap' that holds name/value pairs for the attributes of each element. If you then look at WebCore/html/HTMLElement.cpp, you'll find an id() method that pulls the id out of the map, for example. Dave _

Re: [webkit-dev] how to obtain the value of the html by ID

2009-03-17 Thread David Kilzer
There currently aren't C++ bindings available for the DOM (that mirror the DOM available in JavaScript). They would have to be implemented. See the scripts in the WebCore/bindings/scripts directory. Dave - Original Message > From: zhenghe zhang > To: webkit-dev@lists.webkit.org >

[webkit-dev] where strore "html widget" name and id

2009-03-17 Thread zhenghe zhang
Hi all I am studying the webkit, now I have a problem, I hope you tell me! thank you. there are many html widget in the document, and now I want to konw where store the name and id of html widget thank you zhang ___ webkit-dev mailing list webkit-de

[webkit-dev] how to obtain the value of the html by ID

2009-03-17 Thread zhenghe zhang
Hi all I have a problem, I hope you tell me, thank you. There is a js function: function alertValue() { alert(text1.value); } Now I want to know the javascript function how to obtain the value of "text1" through the c++ functions, I hope you tell me, Thank you & regards zh __

[webkit-dev] A question regarding to JavaScriptCore's garbage collection mechanism.

2009-03-17 Thread Zhe Su
Hi, Recently I encountered a weird issue regarding to JavaScriptCore's garbage collection mechanism. See following javascript code: function TestNativeObject(s) { > var cb = function() { > }; > cb.call(s); > } > > function Test() { > var s = new NativeObject(); > TestNativeObject(s); >

Re: [webkit-dev] Cairo-build on Windows fails

2009-03-17 Thread Frank Thomsen
Hi Brent That worked - thank you very much! Apparently the following code snippet from curl.h did not include winsock.h: #if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \ !defined(__CYGWIN__) || defined(__MINGW32__) #if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H)) /* The

Re: [webkit-dev] Does webkit hold previous loaded pages in memory

2009-03-17 Thread Alexey Proskuryakov
17.03.2009, в 3:50, Meryl Silverburgh написал(а): Does webkit hold pages in memory to allow faster back? Yes. There are some limitations, e.g. pages with subframes are not currently cached - see for more examples. To reliably prevent a pa