Re: [webkit-dev] Rendering for small screen

2009-04-22 Thread Graffine
Hi xunxin: Thanks for your reply in first. Because of I adapt the GTK+/webkit, I couldn't find same functions in GTK+ port. I found a function named FrameView::adjustViewSize which use setContentSize to set the content size. If I alter the width and height parameters, the scroll bar won't

[webkit-dev] about hashmap staticDOMObjects

2009-04-22 Thread ZHOU Xiao-bo
hi all: I still don't understand the purpose of the HashMap: static DOMObjectMap domObjects() { // Don't use malloc here. Calling malloc from a mark function can deadlock. static DOMObjectMap staticDOMObjects; return staticDOMObjects; } what kind of DOMObjects should be stored

Re: [webkit-dev] about hashmap staticDOMObjects

2009-04-22 Thread ZHOU Xiao-bo
oh, I got an idea: Is it because these domobjects doesn't belong to a Document, so they can't be stored in static NodePerDocMap domNodesPerDocument() { ASSERT(JSLock::lockCount()); static NodePerDocMap staticDOMNodesPerDocument; return staticDOMNodesPerDocument; } 2009/4/22 ZHOU

Re: [webkit-dev] Rendering for small screen

2009-04-22 Thread xunxin
Hi, Graffine: you may try this fuction to ajust viewport size. Frame::setZoomFactor(float percent, bool isTextOnly) where the function Frame::createView is called? you may try this command ack createView */gtk/* and you will find

[webkit-dev] print file name and line number while executing javascript

2009-04-22 Thread Jérôme Lebel
Hi, I'm working a very specific platform built on top of Mac OS X. On my own platform I need to use WebKit. In order to have WebKit, I've redone my own webkit framework (in c++) and my own webkit uses webcore framework (almost unchanged) and javascxript core (totally unchanged).

[webkit-dev] Writing a new interface, hit a snag

2009-04-22 Thread Michael Simms
Greetings all... I have spent the last few weeks writing what is effectively a null interface, so I can use WebKit as a backend system for retrieving webpages on a headless X11-less gtk-less machine. This isnt for spamming, mail harvesting or other nefarious activities, dont worry :-) It's so we

Re: [webkit-dev] Interact with DOM Elements using WebKit

2009-04-22 Thread Prema Arya
Hi, Following the C# code: view = new WebViewClass(); view.setHostWindow(this.panel1.Handle.ToInt32()); WebKit.tagRECT rect; rect.bottom = rect.top = rect.left = rect.right = 0; view.initWithFrame(rect, null, null); WebKit.WebURLRequestClass

Re: [webkit-dev] print file name and line number while executing javascript

2009-04-22 Thread Jérôme Lebel
I found my solution : the user agent... Since I created my own webkit, I didn't take the time to create the right user agent. Now that I created one (with the right webkit version), google map works correctly. Thanks, Le 22 avr. 09 à 11:58, Jérôme Lebel a écrit : Hi, I'm working a very

Re: [webkit-dev] want to port JIT to MIPS - cti_op_mod(STUB_ARGS) seg fault

2009-04-22 Thread x yz
this part of code has been ever tested or not? any body can tell me? #else //non X86 void JIT::compileFastArith_op_mod(unsigned result, unsigned op1, unsigned op2) { emitPutJITStubArgFromVirtualRegister(op1, 1, regT2); emitPutJITStubArgFromVirtualRegister(op2, 2, regT2);

Re: [webkit-dev] SharedWorker design doc

2009-04-22 Thread Drew Wilson
That's an excellent point about HTTP auth. I'm not sure that the let's just go find an open frame associated with this worker solution will work - the reason is that with the ability to create/pass around message ports, you can end up with the worker associated with a frame from a different domain

[webkit-dev] Using DocLoader vs SubresourceLoader for loading a (worker) script

2009-04-22 Thread David Levin
You're basically switching from DocLoader to SubresourceLoader for loading a script for workers. DocLoader uses CachedResource and SubresourceLoader doesn't. So another way to state your question is: - What benefit does one get from using the cache (CachedResource) for loading worker

Re: [webkit-dev] drag'n'drop file uploads

2009-04-22 Thread Darin Adler
On Apr 22, 2009, at 3:47 AM, Philip Orr wrote: Does anyone have any pointers on drag and drop files from the finder directly into a web page or section of a web page. I've got examples in Firefox for this but sadly lacking in WebKit knowledge. Maybe if you pointed to the examples “in

Re: [webkit-dev] SharedWorker design doc

2009-04-22 Thread Drew Wilson
Following up on this - is using a dialog for HTTP auth for worker requests really such a bad thing? What if we only do this as a fallback, in the case that the initiating window is closed? It seems more like a UX issue that the application itself could manage (if you want to use HTTP Auth from

Re: [webkit-dev] want to port JIT to MIPS - cti_op_mod(STUB_ARGS) seg fault

2009-04-22 Thread x yz
The cause details are below: 1. original C funtion: JSValueEncodedAsPointer* JITStubs::cti_op_mod(STUB_ARGS) { BEGIN_STUB_FUNCTION(); //causes seg fault JSValuePtr dividendValue = ARG_src1; JSValuePtr divisorValue = ARG_src2; CallFrame* callFrame = ARG_callFrame; double d

Re: [webkit-dev] drag'n'drop file uploads

2009-04-22 Thread Philip Orr
Does anyone have any pointers on drag and drop files from the finder directly into a web page or section of a web page. I've got examples in Firefox for this but sadly lacking in WebKit knowledge. Maybe if you pointed to the examples “in Firefox” we could get a better idea of what

Re: [webkit-dev] SharedWorker design doc

2009-04-22 Thread Maciej Stachowiak
On Apr 22, 2009, at 11:54 AM, Drew Wilson wrote: Following up on this - is using a dialog for HTTP auth for worker requests really such a bad thing? What if we only do this as a fallback, in the case that the initiating window is closed? It seems more like a UX issue that the application

Re: [webkit-dev] about hashmap staticDOMObjects

2009-04-22 Thread Maciej Stachowiak
On Apr 22, 2009, at 12:27 AM, ZHOU Xiao-bo wrote: hi all: I still don't understand the purpose of the HashMap: static DOMObjectMap domObjects() { // Don't use malloc here. Calling malloc from a mark function can deadlock. static DOMObjectMap staticDOMObjects; return

Re: [webkit-dev] SharedWorker design doc

2009-04-22 Thread Drew Wilson
That's also a reasonable option - so we'd just return a 401 error to the caller if the initiating window is unable to gather credentials. -atw 2009/4/22 Maciej Stachowiak m...@apple.com On Apr 22, 2009, at 11:54 AM, Drew Wilson wrote: Following up on this - is using a dialog for HTTP auth

[webkit-dev] How to make the size of QtWebKit4.dll or libQtWetKit.so smaller?

2009-04-22 Thread alex
Hi all: I found that the qt-win-opensource-4.5.0-mingw.exe source code to build qt with webkit under windows, and found the release version size is following: QtCore4.dll 2.61M QtGui4.dll 10.9M QtNetwork4.dll 1.32M QtWebKit4.dll 18.8M But I installed the qt-sdk-win-opensource-2009.01.1.exe

Re: [webkit-dev] drag'n'drop file uploads

2009-04-22 Thread Adam Barth
You can drag and drop a file onto the file input control, which you can create using input type=file. I'm not sure if that addresses your use case. Adam On Wed, Apr 22, 2009 at 1:45 PM, Philip Orr philip_...@hotmail.com wrote: Does anyone have any pointers on drag and drop files from the