[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 222x25
  -RenderBlock (positioned) {UL} at (780,0) size 222x25 {780.00,168.00}

and
layer at (27,363) size 265x239
  RenderBlock (relative positioned) {DIV} at (18,18) size 265x239 {27.00,363.00}

and (no 'positioned' is specified)
  RenderBlock {DIV} at (0,0) size 261x26 {341.00,988.00}
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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 etc into account:
 RenderObject::localToAbsolute(). This is not a trivial problem.

 localToAbsolute() is only fragile because if you are querying for
 the position of a renderobject inside an iframe, it is not relative to
 mainFrame but to the currentFrame. I've done it like below:

 static inline IntRect absoluteRenderRect(RenderObject* render)
 {
    ASSERT(render);
    // FIXME: This function is flawed because it doesn't consider the
 effects of CSS or SVG transforms.

    IntRect rect(render-absoluteClippedOverflowRect());

    // handle nested frames.
    for (Frame* frame = render-document()-frame(); frame; frame =
 frame-tree()-parent())
        if(HTMLFrameOwnerElement* ownerElement = frame-ownerElement())
            rect.move(ownerElement-renderer()-offsetLeft(),
 ownerElement-renderer()-offsetTop());

    return rect;
 }


 maybe there is a better way , but ...


Hi, I have tried using 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 (from the output below) is all the
absolute coordinates of those text are x = 8.0 and y = 3.0.  But
visually, they are next to each other horizontally. So the y values
should be the same but the x values should be different.  Can you
please help me understand the result? And there is no iframe problem
the like you described.

Thank you.

Here is the output:

RenderInline {B} at (0,0) size 27x15 {8.00,3.00}
   RenderText {#text} at (0,1) size 27x15 {8.00,3.00}
 text run at (0,1) width 27: Web
 RenderText {#text} at (33,1) size 4x15 {8.00,3.00}
   text run at (33,1) width 4:  
 RenderInline {A} at (0,0) size 43x15 [color=#CC] {8.00,3.00}
   RenderText {#text} at (37,1) size 43x15 {8.00,3.00}
 text run at (37,1) width 43: Images
 RenderText {#text} at (86,1) size 4x15 {8.00,3.00}
   text run at (86,1) width 4:  
 RenderInline {A} at (0,0) size 33x15 [color=#CC] {8.00,3.00}
   RenderText {#text} at (90,1) size 33x15 {8.00,3.00}
 text run at (90,1) width 33: Video
 RenderText {#text} at (129,1) size 4x15 {8.00,3.00}
   text run at (129,1) width 4:  
 RenderInline {A} at (0,0) size 32x15 [color=#CC] {8.00,3.00}
   RenderText {#text} at (133,1) size 32x15 {8.00,3.00}
 text run at (133,1) width 32: Maps
 RenderText {#text} at (171,1) size 4x15 {8.00,3.00}
   text run at (171,1) width 4:  
 RenderInline {A} at (0,0) size 32x15 [color=#CC] {8.00,3.00}
   RenderText {#text} at (175,1) size 32x15 {8.00,3.00}
 text run at (175,1) width 32: News
 RenderText {#text} at (213,1) size 4x15 {8.00,3.00}
   text run at (213,1) width 4:  
 RenderInline {A} at (0,0) size 54x15 [color=#CC] {8.00,3.00}
   RenderText {#text} at (217,1) size 54x15 {8.00,3.00}
 text run at (217,1) width 54: Shopping
 RenderText {#text} at (277,1) size 4x15 {8.00,3.00}
   text run at (277,1) width 4:  
 RenderInline {A} at (0,0) size 34x15 [color=#CC] {8.00,3.00}
   RenderText {#text} at (281,1) size 34x15 {8.00,3.00}
 text run at (281,1) width 34: Gmail
 RenderText {#text} at (321,1) size 4x15 {8.00,3.00}
   text run at (321,1) width 4:  
 RenderInline {A} at (0,0) size 44x15 [color=#CC] {8.00,3.00}
   RenderInline {U} at (0,0) size 29x15 {8.00,3.00}
 RenderText {#text} at (325,1) size 29x15 {8.00,3.00}
   text run at (325,1) width 29: more





 --
 --Antonio Gomes

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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 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 (from the output below), all the
 absolute coordinates of those text are x = 8.0 and y = 3.0.  But
 visually, they are next to each other horizontally. So the y values
 should be the same but the x values should be different.  Can someone

 please help me understand the result?

 You need add renderText's relative x. such as:

     IntRect linesBox = text-linesBoundingBox();
     FloatPoint absPos = text-localToAbsolute();
     int posX = lineBox.x() + absPos.x();
     int posY = lineBox.y() + absPos.y();


Thank you. But why all the RenderText's parent (which is RenderInline)
all have absolute x = 8 and absolute y = 3?

Thank you for any explanation.


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[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 (from the output below), all the
absolute coordinates of those text are x = 8.0 and y = 3.0.  But
visually, they are next to each other horizontally. So the y values
should be the same but the x values should be different.  Can someone
please help me understand the result?

Thank you.

Here is the output:

RenderInline {B} at (0,0) size 27x15 {8.00,3.00}
RenderText {#text} at (0,1) size 27x15 {8.00,3.00}
  text run at (0,1) width 27: Web
  RenderText {#text} at (33,1) size 4x15 {8.00,3.00}
text run at (33,1) width 4:  
  RenderInline {A} at (0,0) size 43x15 [color=#CC] {8.00,3.00}
RenderText {#text} at (37,1) size 43x15 {8.00,3.00}
  text run at (37,1) width 43: Images
  RenderText {#text} at (86,1) size 4x15 {8.00,3.00}
text run at (86,1) width 4:  
  RenderInline {A} at (0,0) size 33x15 [color=#CC] {8.00,3.00}
RenderText {#text} at (90,1) size 33x15 {8.00,3.00}
  text run at (90,1) width 33: Video
  RenderText {#text} at (129,1) size 4x15 {8.00,3.00}
text run at (129,1) width 4:  
  RenderInline {A} at (0,0) size 32x15 [color=#CC] {8.00,3.00}
RenderText {#text} at (133,1) size 32x15 {8.00,3.00}
  text run at (133,1) width 32: Maps
  RenderText {#text} at (171,1) size 4x15 {8.00,3.00}
text run at (171,1) width 4:  
  RenderInline {A} at (0,0) size 32x15 [color=#CC] {8.00,3.00}
RenderText {#text} at (175,1) size 32x15 {8.00,3.00}
  text run at (175,1) width 32: News
  RenderText {#text} at (213,1) size 4x15 {8.00,3.00}
text run at (213,1) width 4:  
  RenderInline {A} at (0,0) size 54x15 [color=#CC] {8.00,3.00}
RenderText {#text} at (217,1) size 54x15 {8.00,3.00}
  text run at (217,1) width 54: Shopping
  RenderText {#text} at (277,1) size 4x15 {8.00,3.00}
text run at (277,1) width 4:  
  RenderInline {A} at (0,0) size 34x15 [color=#CC] {8.00,3.00}
RenderText {#text} at (281,1) size 34x15 {8.00,3.00}
  text run at (281,1) width 34: Gmail
  RenderText {#text} at (321,1) size 4x15 {8.00,3.00}
text run at (321,1) width 4:  
  RenderInline {A} at (0,0) size 44x15 [color=#CC] {8.00,3.00}
RenderInline {U} at (0,0) size 29x15 {8.00,3.00}
  RenderText {#text} at (325,1) size 29x15 {8.00,3.00}
text run at (325,1) width 29: more
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[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 webkit won't
crash (since the RenderTree is already detached)?

Thank you.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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 you.



On Sun, May 31, 2009 at 3:11 PM, Eric Seidel macd...@gmail.com wrote:
 To expand Darin's answer:   there are exceptions to the
 relative-to-containing-block rule.  SVG results for example are absolute
 (mostly).  There are also hacks the the DRT output, where we lie about
 metrics in order to keep consistent with historical results (to minimize the
 scope of a single patch).  If you're trying to use DRT for anything other
 than testing, you will likely need to fork WebCore's RenderTreeAsText.cpp
 and SVGRenderTreeAsText.cpp substantially to fit your needs.
 -eric
 On Sun, May 31, 2009 at 10:19 AM, Darin Adler da...@apple.com wrote:

 Coordinates in DumpRenderTree output are relative to the containing block,
 not absolute.

    -- Darin

 ___
 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


[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 why the
y co-coordinate is less than 22?

   RenderInline {A} at (0,0) size 76x11 [color=#CC]
  RenderText {#text} at (6,22) size 76x11
text run at (6,22) width 76: Language Tools

RenderBlock {INPUT} at (245,3) size 12x13
  RenderInline {LABEL} at (0,0) size 49x15
RenderText {#text} at (260,2) size 49x15
  text run at (260,2) width 49:  the web

Thank you for helping me understanding it
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[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 that information?
Or can where can I add debug printfs in Webkit to understand that.

Thank you.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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. http://code.google.com/apis/v8/design.html#mach_code

Thank you.


On Thu, May 21, 2009 at 2:12 PM, Zoltan Herczeg
zherc...@inf.u-szeged.hu wrote:
 Hi,

 The JavaScript engine does 3 steps:
 1) Parse JS files
 2) Generate SquirellFish byte code (ByteCodeGenerator.h is part of it)
 3) Compile SF byte code to machine code by its JIT compiler (optional)

 The last step depends on the architecture (supported or not) and C++
 compiler directives. If JIT is enabled (see wtf/Platform.h), it always
 generates machine code. Otherwise an interpreter executes the byte code. A
 mixed environment (both jit and interpreter) is not yet supported.

 Zoltan

 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 operating system of the browser?

 Is that correct?
 If yes, when/how does Webkit decide to use which approach?
 ___
 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


[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 operating system of the browser?

Is that correct?
If yes, when/how does Webkit decide to use which approach?
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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 'reference counted
or garbage collected' memory management?
Not 'if my MacOS application which uses Webkit can use 'reference
counted or garbage collected' memory management?

Thank you.


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 'reference counted
or garbage collected' memory management?
Not 'if my MacOS application which uses Webkit can use
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[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 for
determining the lifetime of objects.
Reference counting is described in Memory Management Programming Guide
for Cocoa.
 ■ Garbage collection, where you pass responsibility for determining
the lifetime of objects to an automatic
collector.

Does Webkit on MacOs use either one of them or it has its own memory management.

Thank you.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[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.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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.  Can you please tell me which api in webkit
 that Safari 4.0 is using?

 There’s nothing WebKit-specific involved. This is done with standard Cocoa
 NSView APIs such as -[NSView displayRectIgnoringOpacity:inContext:] and
 -[NSView cacheDisplayInRect:toBitmapImageRep:].


Thanks. But if Webkit is not involved. That means it can not capture
the web content which is not within the visible area (e.g. a page is
long and it has scroll bar)?



    -- Darin


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[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.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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. just a window with a text field to enter URL and then it uses
 WebKit to load and render the page?
 I think the WebKit Gtk has something like that.  Is there an
 equivalent of that on MacOS?

 There’s a Mac OS X sample application called MiniBrowser that’s sort of
 like
 that.

 This article talks about it

 http://developer.apple.com/safari/articles/opensource/webkitnightlybuilds.html
 and it’s mentioned often in the WebKit Objective-C Programming Guide.

 Thanks. But when I source using svn (following this
 http://webkit.org/building/checkout.html;)
 i don't see the MiniBrowser project.

 do i have to get the source bundle from http://nightly.webkit.org/?

 The MiniBrowser example ships with the Mac OS X developer tools, and is
 installed at /Developer/Examples/WebKit alongside other WebKit-related
 sample code.


Thank you. How can I use the MiniBrowser example project to use the
Webkit code that I get from the trunk.
The one that I get from following this instruction:

http://webkit.org/building/checkout.html

Thank you.




 - Mark


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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:

 The MiniBrowser example ships with the Mac OS X developer tools, and is
 installed at /Developer/Examples/WebKit alongside other WebKit-related
 sample code.


 Thank you. How can I use the MiniBrowser example project to use the
 Webkit code that I get from the trunk.
 The one that I get from following this instruction:

 http://webkit.org/building/checkout.html

 The link that Darin sent out earlier talks about doing just that

 (http://developer.apple.com/safari/articles/opensource/webkitnightlybuilds.html).
  The section titled Testing Your Application With WebKit Nightly Builds
 describes running MiniBrowser against a nightly build of WebKit.  The
 instructions can trivially be adapted to work with your own build of
 WebKit
 by changing the value of DYLD_FRAMEWORK_PATH to point at your built
 products
 directory.


 Thank you for your help.
 Sorry for my oversight.

 When you said your built products directory. Do you mean
 ./WebKit/mac/Resources? or ./WebCore/Resources

 The directory beneath which the products of the build process are placed.
  For a debug build of WebKit without a shared build directory configured in
 Xcode, that would be WebKitBuild/Debug.


Actually, I am thinking if I can do it the other way around.

Follow this http://webkit.org/building/debug.html to run WebCore in
Xcode, but in step 4, instead of
using '/Applications/Safari.app.', use
'/Developer/Examples/WebKit/MiniBrowser/build/Debug/MiniBrowser.app'

If I do that, i can setup breakpoints inside WebCore, since I am
running WebCore Xcode project (instead of MiniBrowser Xcode project).

 - Mark


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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 the WebKit Gtk has something like that.  Is there an
 equivalent of that on MacOS?

 There’s a Mac OS X sample application called MiniBrowser that’s sort of like
 that.

 This article talks about it
 http://developer.apple.com/safari/articles/opensource/webkitnightlybuilds.html
 and it’s mentioned often in the WebKit Objective-C Programming Guide.

Thanks. But when I source using svn (following this
http://webkit.org/building/checkout.html;)
i don't see the MiniBrowser project.

do i have to get the source bundle from http://nightly.webkit.org/?



    -- Darin


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


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 where I can find that?

 Could not be more obvious:

 JavaScriptCore/bytecode/
 JavaScriptCore/bytecompiler/


Thank you. But in the android's version, there is not corresponding directory.
Can you please tell me where/how is android's Webkit compile js into byte code?




 --
 Ariya Hidayat, Software Engineer
 Qt Software, Nokia Devices RD
 ___
 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


[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, how is that being maintained inside javascript VM.

Thank you.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Canvas API in Webkit

2008-12-24 Thread Lucius Fox
Thanks. I think Safari has a 'history' feature or Nokia S60 browser which
shows each url in history as a preview image'.

Can you please tell me how if that is true and how is that implement?


On Sun, Dec 14, 2008 at 6:46 PM, Justin Haygood jhayg...@reaktix.comwrote:

  The HTML Canvas element 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 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?

 Thank you.

  --

 ___
 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


[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?

Thank you.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev