[webkit-dev] Quesition about DumpRenderTree output

2009-06-15 Thread Lucius Fox
Hi, Can you please tell me what is the meaning of relative positioned and the meaning of positioned in DumpRenderTree? How should I use that to read the values RenderObject::localToAbsolute() (enclosed in ())and RenderObject:frameRect() (enclosed in {}); For example: layer at (780,168) size

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

2009-06-11 Thread Lucius Fox
On Wed, Jun 10, 2009 at 1:58 PM, tonikitoo (Antonio Gomes)toniki...@gmail.com wrote: On Mon, Jun 1, 2009 at 1:31 PM, Simon Frasersimon.fra...@apple.com wrote: There is a method on RenderObject to get the correct absolute coordinates of the renderer, which correctly takes transforms, scrolling

Re: [webkit-dev] Question about return values of RenderObject:localToAbsolute()

2009-06-10 Thread Lucius Fox
On Tue, Jun 9, 2009 at 11:38 PM, xunxinwanxun...@gmail.com wrote: On Wed, Jun 10, 2009 at 1:47 PM, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I use the dumpRenderTree to dump out the absolute co-ordinates of the Render Tree of www.google.com. I put the absolute x, y result at the end

[webkit-dev] Question about return values of RenderObject:localToAbsolute()

2009-06-09 Thread Lucius Fox
Hi, I use the dumpRenderTree to dump out the absolute co-ordinates of the Render Tree of www.google.com. I put the absolute x, y result at the end marked by { and }. And www.google.com, the first text is 'Web followed by Images followed by Video followed by Maps. But what I don't understand is

[webkit-dev] Question about detach Render Tree from DOM

2009-06-03 Thread Lucius Fox
Hi, I am reading webcore rendering basic, http://webkit.org/blog/114/webcore-rendering-i-the-basics/ It talks about detaching Render Tree from DOM. My question is after I detached Render Tree from DOM, is the DOM still a 'valid' DOM? meaning, can I still use JavaScript to modify the DOM and

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

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

2009-05-30 Thread Lucius Fox
I load www.google.com in WebKit and Dump Render Tree output. Here is the part of the output: But I don't understand is the y co-coordinate output. The 'Language Tools' y co-coordinate is 22. And the ' the web' y co-coordinate is 2. But visually, the text 'the web' is BELOW 'Language Tools', so

[webkit-dev] Need help in understanding Webkit reflow

2009-05-27 Thread Lucius Fox
HI, I would like some help/pointers in how to understand Webkit reflow logic/mechanism. I would like to know given a URL, what elements are re-layout/re-calculate dimension multiple times (e.g. things like table without height/width attribute). Is there any instrumentation in Webkit to collect

Re: [webkit-dev] Webkit JavaScript question

2009-05-22 Thread Lucius Fox
Thanks. Can you please help me understand why SquirellFish needs to generate squirellFish byte code first before compile it to machine code? For v8, it compiles JavaScript source code directly into machine code when it is first executed. There are no intermediate byte codes, no interpreter.

[webkit-dev] Webkit JavaScript question

2009-05-21 Thread Lucius Fox
Hi, Can you please tell me what is the difference between ByteCodeGenerator.h and JIT.h? I assume ByteCodeGenerator is convert a raw .js file into JavaScript VM opecode and will be executed by Webkit JavaScript VM. and JIT convert a raw .js file into native machine code and will be executed by

Re: [webkit-dev] Memory Management of Webkit on MacOS

2009-05-20 Thread Lucius Fox
On Fri, May 15, 2009 at 10:22 AM, Darin Adler da...@apple.com wrote: The WebKit framework on Mac OS X supports either mode, reference counted or garbage collected, depending on the mode of the application it’s linked to. -- Darin Thanks. Sorry. I meant does Webkit on MacOS X uses

[webkit-dev] Memory Management of Webkit on MacOS

2009-05-15 Thread Lucius Fox
My understanding of Webkit on MacOS uses Objective-C runtime. Does Webkit on MacOS use memory management of Objective-C runtime. It said Objective-C 2.0 offers two environments for memory management that allow you to meet these goals: ■ Reference counting, where you are ultimately responsible

[webkit-dev] Webkit capture web page content API

2009-05-13 Thread Lucius Fox
Hi, Does Webkit have an api which captures web page content? for example in Safari 4.0 beta, the history/bookmark shows an image of the web content of each history/bookmark entry. Can you please tell me which api in webkit that Safari 4.0 is using? Thank you.

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

2009-05-13 Thread Lucius Fox
On Wed, May 13, 2009 at 6:39 AM, Darin Adler da...@apple.com wrote: On May 13, 2009, at 12:26 AM, Lucius Fox wrote: Does Webkit have an api which captures web page content? for example in Safari 4.0 beta, the history/bookmark shows an image of the web content of each history/bookmark entry

[webkit-dev] How to build Webkit GTK on macos

2009-05-06 Thread Lucius Fox
From http://trac.webkit.org/wiki/BuildingGtk, it said i need to install ATK Cairo cURL fontconfig freetype2 gettext gtk+ libjpeg libpng libtiff libxml2 libxslt pango SQLite My question is how to install these packages on Macos so that i can compile Webkit gtk on Macos? Thank you.

Re: [webkit-dev] TestShell for WebKit rendering engine

2009-04-30 Thread Lucius Fox
On Wed, Apr 29, 2009 at 11:09 PM, Mark Rowe mr...@apple.com wrote: On 2009-04-29, at 22:14, Lucius Fox wrote: On Wed, Apr 29, 2009 at 9:40 AM, Darin Adler da...@apple.com wrote: On Apr 29, 2009, at 9:25 AM, Lucius Fox wrote: Is there a TestShell for WebKit rendering engine on MacOS? i.e

Re: [webkit-dev] TestShell for WebKit rendering engine

2009-04-30 Thread Lucius Fox
On Thu, Apr 30, 2009 at 7:24 PM, Mark Rowe mr...@apple.com wrote: On 2009-04-30, at 19:20, Lucius Fox wrote: On Thu, Apr 30, 2009 at 10:54 AM, Mark Rowe mr...@apple.com wrote: On 2009-04-30, at 10:48, Lucius Fox wrote: On Wed, Apr 29, 2009 at 11:09 PM, Mark Rowe mr...@apple.com wrote

Re: [webkit-dev] TestShell for WebKit rendering engine

2009-04-29 Thread Lucius Fox
On Wed, Apr 29, 2009 at 9:40 AM, Darin Adler da...@apple.com wrote: On Apr 29, 2009, at 9:25 AM, Lucius Fox wrote: Is there a TestShell for WebKit rendering engine on MacOS? i.e. just a window with a text field to enter URL and then it uses WebKit to load and render the page? I think

Re: [webkit-dev] opcode for Webkit JavaScript Engine opcode

2009-03-29 Thread Lucius Fox
On Fri, Mar 27, 2009 at 3:05 AM, Ariya Hidayat ariya.hida...@trolltech.com wrote: Can you please tell where i can find definition of JavaScript opcode? I mean, Webkit will parse the source js file into some internal JavaScript opcode for it s JavaScript VM to execute. Can you please tell me

[webkit-dev] Data Structure built during JavaScript execution

2009-03-24 Thread Lucius Fox
Hi, Can you please tell me what is the data Structure built by Webkit during JavaScript execution? For example, var a = 1; function b() { alert('hello); } It needs to build a data structure to save the value of a inside the VM. Can you please tell me what is that defined? same as Function,

Re: [webkit-dev] Canvas API in Webkit

2008-12-24 Thread Lucius Fox
was invented by Apple for Safari/WebKit :) - Original Message - *From:* Lucius Fox lucius.fo...@gmail.com *To:* webkit-dev@lists.webkit.org *Sent:* Sunday, December 14, 2008 5:24 PM *Subject:* [webkit-dev] Canvas API in Webkit Hi, Mozilla has a Canvas API which allow extension

[webkit-dev] Canvas API in Webkit

2008-12-14 Thread Lucius Fox
Hi, Mozilla has a Canvas API which allow extension developer to paint the web page content to a surface. So that extension tab preview is possible: http://ted.mielczarek.org/code/mozilla/tabpreview/ Is that the same kind of api in webkit? If yes, can you please tell me where i can find example?