Re: [webkit-dev] Coding convention of constants
On Jul 8, 2009, at 11:08 PM, KwangYul Seo wrote: I found another style which starts with k. [4] platform/chromium/PopupMenuChromium.cpp static const int kMaxVisibleRows = 20; static const int kMaxHeight = 500; static const int kBorderSize = 1; static const TimeStamp kTypeAheadTimeoutMs = 1000; For what it's worth, the convention of adding k to the beginning of constants was an artifact of the Classic Mac OS APIs (those that became Carbon). Scott ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] RenderObject hasLayer method
On Jun 12, 2009, at 12:17 AM, Meryl Silverburgh wrote: 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? I'm going to speculate here, but on the MacOS, there is a technology called Core Animation. Core Animation allows a program to create rectangular graphical areas and easily animate them on the screen. These rectangular areas are called Layers. Safari supports CSS transitions and effects which (again I speculate) make use of those layers to simplify their animations. I suspect, then, that a RenderObject, while animating, is associated with at least one CALayer and the hasLayer method would tell you whether or not that was, in fact, occurring. http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html Scott ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Debugging JavaScript Core Apps that are not Safari
It's been a while since I've looked at JavaScript Core and obviously a lot of changes have gone on. In my previous examination, I was using Drosera to debug an application which used JavaScript Core as an internal scripting engine. It would appear that all the JavaScript debugging facilities have been moved inside of Safari. Is it still possible to debug JavaScript code running through JavaScript Core in an application other than Safari? Scott ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Desperate for webkit help
On Apr 11, 2008, at 7:37 PM, David Kilzer wrote: The best thing you could do is to file a bug on https://bugreport.apple.com/ and attach source for a project that reproduces the issue, along with details steps to reproduce the issue. If you don't have an Apple Developer Connection (ADC) membership, sign up for a free online membership using https://connect.apple.com/. The third thing you COUDLD do is purchase a DTS incident from ADC and see if you can engage someone at Apple to help you track down and fix your bug. It will cost you money, but if it helps you fix the bug quickly, it can pay for itself. I don't know about the relationship between DTS and WebKit, but you could call ADC and ask. Scott ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] JavaScript Core and bytecode
With the recent speed improvements show by JavaScript in the WebKit builds... has JavaScript Core changed to use a byte code interpreter (as suggested at the web site http://webkit.org/projects/javascript/index.html)? Scott ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] [ot?] JavaScript project pages at the WebKit web site
I was curious to know what plans, if any, there were to incorporate JavaScript 2.0 language features into the WebKit's JavaScript Core engine. I visited the web site: http://webkit.org/projects/javascript/index.html and read through the current projects. In seeing the last project listed, C Language Binding I was reminded of the JavaScript Core API that was released in Leopard. Is the list of projects at that site out-of-date relative to the latest releases of WebKit? Scott P.S. Don't get me wrong, I would much rather have folks contributing to the code than updating web pages. :-) ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev
[webkit-dev] The thisObject parameter for JSEvaluateScript
I'm using JavaScript core to integrate JavaScript as an embedded scripting engine in my application. I've gotten a lot of stuff working (which is a lot of fun, BTW). I've been able to run scripts and see them manipulate objects in my application model (windows and the like... just to see if I could) as well as objects in the object model (in the MVC sense) of my problem domain. I've added a scripting menu. I want the scripts that are run through that menu to be executed in the scope of the frontmost document. That is, I would like the a script whose textual content is the word this to evaluate to the document object of the frontmost document. To that end, I'm calling JSEvaluateScript and I'm passing the JSObjectRef for my document object as it's third parameter, thisObject. Even when doing so, however, I find that within my scripts the variable this still refers to the global context and not the frontmost document. For example, I'm able to successfully evaluate the script: this.documents[0].addDocumentElement() (where documents is a property I add to the global context and is roughly equivalent to [NSApp orderedDocuments]) I would rather have the script: this.addDocumentElement() do the same thing... that is JSEvaluateScript should use the document object for this Am I simply misinterpreting the purpose of the thisObject parameter to JSEvaluateScript? Scott ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev