[webkit-dev] RenderObject hasLayer method
Hi, Can someone please tell me what does the 'layer' in a RenderObject means? in other words, what does hasLayer method returns or purpose of that method? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Serialize DOM to file
Hi, Is there any debug code/example code snippet to serialize the DOM to a fie? Thank you for any tip. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] How to set breakpoints in JavaScript Engine of WebKit on MacOS
On Fri, May 15, 2009 at 11:07 PM, Darin Adler da...@apple.com wrote: On May 15, 2009, at 10:50 PM, Meryl Silverburgh wrote: I am able to download and compile both WebCore project and JavaScriptCore project using XCode on Macos. I have created a custom executable (pointing to /Application/Safari.app) in my WebCore project. The browser is launched and I can set breakpoints in WebCore. But my question is how can I set breakpoints in JavaScript engine? e.g. I want to load www.cnn.com in the brower and i want it to break at void Parser::parse(JSGlobalData* globalData, int* errLine, UString* errMsg) in JavaScriptCore (Parser.cpp). Just open the source file and set a breakpoint. It should work. I do that all the time. Thank you. I tried the following, but it still does not work: 1. open WebCore xcode project (build and go (debug) runs fine, it launches a Safari.app) 2. Go to File-Open, and open JavaScriptCore/parser/Parser.cpp 3. File, Parser.cpp, got opened in XCode. 4. Go to line 42, set a breakpoint, a Yellow with blue border' bookmark showed up void Parser::parse(JSGlobalData* globalData, int* errLine, UString* errMsg) { m_sourceElements = 0; 5. 'Build and Go' in Webkit project. 6. Load www.aol.com But my breakpoint in JavaScript Parser never breaks. Can you please tell me what am i missing? Any help is appreciated. Thank you. You can also create a custom executable in the JavaScriptCore project and start Safari from there instead of the WebCore project. -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Webkit profiling on MacOS
Hi, Does Webkit have profiling build in on MacOS? e.g. For each page, I would like to know how much time is spent on html parsing, css parsing, javascript executing? And does Webkit work with Valgrind on MacOS? Or it uses other time of profiling tool on MacOS? e.g. for each page, find out the break down of memory usage, what is the % for JS, % for CSS, % for html? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] How to set breakpoints in JavaScript Engine of WebKit on MacOS
Hi, I am able to download and compile both WebCore project and JavaScriptCore project using XCode on Macos. I have created a custom executable (pointing to /Application/Safari.app) in my WebCore project. The browser is launched and I can set breakpoints in WebCore. But my question is how can I set breakpoints in JavaScript engine? e.g. I want to load www.cnn.com in the brower and i want it to break at void Parser::parse(JSGlobalData* globalData, int* errLine, UString* errMsg) in JavaScriptCore (Parser.cpp). How can I do that? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Dump render tree of webkit
Hi, In http://webkit.org/blog/114/webcore-rendering-i-the-basics/, it said webkit will build a Render tree for each page it loads. Is there a tool/API for me to dump the Render Tree to a file/screen? The closest I find is './WebKitBuild/Debug/DumpRenderTree', but when I run it $ ./WebKitBuild/Debug/DumpRenderTree http://www.cnn.com Blocked access to external URL http://www.cnn.com/ Content-Type: text/plain layer at (0,0) size 800x600 RenderView at (0,0) size 800x600 layer at (0,0) size 800x600 RenderBlock {HTML} at (0,0) size 800x600 RenderBody {BODY} at (8,8) size 784x584 #EOF LEAK: 1 JSC::Node Moreover , is there any tool/function to dump the DOM of a page to file/screen? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] squirrelfish-bytecode
Hi, Does webkit cache squirrelfish bytecode? For example, multiple can use the same javascript file (e.g. common javascript libraries, like jquery, or same domain uses some common javascript file across different pages for the same domain). When webkit parses the JS file and builds squirrelfish-bytecode, does it cache it ? so that subsequence loading of the same js file will skip the js compile process? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] How can I listen for a page load complete event
On Wed, Apr 29, 2009 at 10:30 AM, Darin Adler da...@apple.com wrote: On Apr 29, 2009, at 10:00 AM, Meryl Silverburgh wrote: Can you please tell me how can I listen for a page load complete event programmatically? What platform? What programming language? Could you give a little more context on who you are and what you’re working on? In HTML with JavaScript you can listen for the load event like this: body onload=pageLoadComplete() There are many other ways to do this in many different programming languages. And there are multiple events you might call page load complete too. Sorry. Thank you for your help. I am trying to do that in C++ on MacOS. And when page load complete, I meant the browser finish loading everything (all js, images, css). -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] files with .mm extension
Hi, Can you please tell me what are the files with .mm extension? e.g. platform/graphics/mac/ImageMac.mm? It looks like c++, but it has syntax like this: NSBundle *bundle = [NSBundle bundleForClass:[WebCoreBundleFinder class]]; NSString *imagePath = [bundle pathForResource:[NSString stringWithUTF8String:name] ofType:@tiff]; NSData *namedImageData = [NSData dataWithContentsOfFile:imagePath]; So I am not sure how to read those lines. Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] How can I listen for a page load complete event
Hi, Can you please tell me how can I listen for a page load complete event programmatically? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Safari Open in Dashboard feature
Thank you. I have a related question about Safari and Webkit. In this page about 'debugging webkit on Macos', it said: Choose any WebKit application you want to use for debugging. To use Safari, select /Applications/Safari.app. My question is why it said using 'Safari.app', if Safari application is not part of Webkit being open source. How can I debug the WebKit that I get from svn trunk? On Sat, Apr 18, 2009 at 12:41 AM, Adele Peterson ad...@apple.com wrote: That feature is part of the Safari application, and is not included in WebKit. - Adele On Apr 18, 2009, at 12:30 AM, Meryl Silverburgh wrote: Hi, Can you please tell me if Safari Open in Dashboard feature is open source? And if it is part of the webkit trunk? 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] Safari Open in Dashboard feature
Hi, Can you please tell me if Safari Open in Dashboard feature is open source? And if it is part of the webkit trunk? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Webkit Design and MVC design pattern
Hi, Does Webkit follow MVC design pattern? If DOM is the Model, and Render Tree is the View, what is the 'controller' in MVC? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Does webkit hold previous loaded pages in memory
Hi, Does webkit hold pages in memory to allow faster back? For example, I load 3 different sites one after another: 1. www.google.com 2. www.yahoo.com 3. www.cnn.com Does it hold the DOM/Render Tree/JavaScript code/data (after the source is parsed) of the previous 2 sites? If not, does it hold the source files of the external CSS/JS files? Thank you. ___ 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 text wrapping
Hi, Can you please tell me where is the Webkit code which does text wrapping? For example, I have a paragraph of text. How does Webkit decide where to break into multiple lines? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Safari-4 is webkit/trunk?
On Tue, Feb 24, 2009 at 1:58 PM, Darin Adler da...@apple.com wrote: On Feb 24, 2009, at 1:47 PM, G G wrote: Is today's release of Safari 4 beta building against trunk or a branch? http://trac.webkit.org/browser/releases/Apple/Safari%204%20Public%20Beta -- Darin Thanks. Can you please tell me how can I check out the Safari 4 beta out from SVN? I tried, I get this error: $ svn checkout http://svn.webkit.org/repository/webkit/release/Apple/Safari%204%20Public%20Beta . svn: URL 'http://svn.webkit.org/repository/webkit/release/Apple/Safari%204%20Public%20Beta' doesn't exist ___ 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] Safari-4 is webkit/trunk?
Sorry, I find out there is a typo in my url. On Tue, Feb 24, 2009 at 4:30 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: On Tue, Feb 24, 2009 at 1:58 PM, Darin Adler da...@apple.com wrote: On Feb 24, 2009, at 1:47 PM, G G wrote: Is today's release of Safari 4 beta building against trunk or a branch? http://trac.webkit.org/browser/releases/Apple/Safari%204%20Public%20Beta -- Darin Thanks. Can you please tell me how can I check out the Safari 4 beta out from SVN? I tried, I get this error: $ svn checkout http://svn.webkit.org/repository/webkit/release/Apple/Safari%204%20Public%20Beta . svn: URL 'http://svn.webkit.org/repository/webkit/release/Apple/Safari%204%20Public%20Beta' doesn't exist ___ 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] Safari-4 is webkit/trunk?
Sorry for my mistake. I apologize. On Tue, Feb 24, 2009 at 4:34 PM, Mark Rowe mr...@apple.com wrote: On 2009-02-24, at 16:30, Meryl Silverburgh wrote: On Tue, Feb 24, 2009 at 1:58 PM, Darin Adler da...@apple.com wrote: On Feb 24, 2009, at 1:47 PM, G G wrote: Is today's release of Safari 4 beta building against trunk or a branch? http://trac.webkit.org/browser/releases/Apple/Safari%204%20Public%20Beta -- Darin Thanks. Can you please tell me how can I check out the Safari 4 beta out from SVN? I tried, I get this error: $ svn checkout http://svn.webkit.org/repository/webkit/release/Apple/Safari%204%20Public%20Beta . svn: URL 'http://svn.webkit.org/repository/webkit/release/Apple/Safari%204%20Public%20Beta' doesn't exist You dropped the trailing s from the releases part of the path. - Mark ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] How to build a webkit release build
I read the instructions here in building Webkit trunk build. http://webkit.org/building/build.html But when I check out the 'release' build, it only has 4 subdirectories (different from the trunk project directories) and it does not have 'WebKit/WebKitTools/Scripts/build-webkit' http://trac.webkit.org/browser/releases/Apple/Safari%204%20Public%20Beta http://trac.webkit.org/browser/trunk So my question is how can I build Webkit's release build? 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 build a webkit release build
Thanks. But after I svn get the release build, there are only 4 sub-directories. $ ls JavaScriptCore JavaScriptGlue WebCore WebKit So I can't perform your steps as there is no 'autogen.sh' 'build-webkit', etc. On Tue, Feb 24, 2009 at 7:35 PM, x yz last...@yahoo.com wrote: check out eveything, autogen.sh --pefix=dir set-webkit-configuration --release build-webkit --gtk --- On Wed, 2/25/09, Meryl Silverburgh silverburgh.me...@gmail.com wrote: From: Meryl Silverburgh silverburgh.me...@gmail.com Subject: [webkit-dev] How to build a webkit release build To: webkit-dev@lists.webkit.org Date: Wednesday, February 25, 2009, 8:50 AM I read the instructions here in building Webkit trunk build. http://webkit.org/building/build.html But when I check out the 'release' build, it only has 4 subdirectories (different from the trunk project directories) and it does not have 'WebKit/WebKitTools/Scripts/build-webkit' http://trac.webkit.org/browser/releases/Apple/Safari%204%20Public%20Beta http://trac.webkit.org/browser/trunk So my question is how can I build Webkit's release build? 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] Need help in understanding how webkit handles clicks event
Hi, Can you please how webkit handles a mouse click from a user? For example, when user clicks an anchor, it will load the web page. But if the links points to a pdf document, it will load the document using pdf reader. Can you please tell me where in the code handles that? Thank you. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Build error of Web kit on ubuntu
Hi, i just check out the webkit source and try to compile it under ubuntu. I get this follow error: Can't open WebKit/gtk/webkit/webkitversion.h: No such file or directory at /usr/bin/glib-mkenums line 273. But I was able to compile the webkit code when i check that out (using git) about 2 weeks ago. But when i create a new directory and compiles it again, it fails. Thank you for any pointer. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev