Re: [webkit-dev] AncestorChainWalker substance and style thoughts

2013-02-18 Thread Darin Adler
On Feb 18, 2013, at 6:40 PM, Ryosuke Niwa wrote: > But you're right in that the case of one off call to parent(), there isn't > much point in creating an object. We can probably get away with a single > function call. We can always add a convenience function for going a single level even if th

Re: [webkit-dev] Possibilities to use border css property on image map...

2013-02-26 Thread Darin Adler
On Feb 25, 2013, at 11:26 PM, Arunprasad Rajkumar wrote: > So I tried using :focus { border:5px solid red; }. But it is not working in > WebKit based browsers. But border property works well for all other > elements(a,div,span,p,..) but not with area. Thanks fore the bug report. However, mail

Re: [webkit-dev] Possibilities to use border css property on image map...

2013-02-27 Thread Darin Adler
On Feb 26, 2013, at 8:49 PM, Arunprasad Rajkumar wrote: > From next time can I post it to webkit-help to ensure the bug? No, you shouldn’t. It’s normally considered bad manners to send mail to the mailing list to ask “Is this a bug?” without first filing a bug report. If it’s not a bug we can

Re: [webkit-dev] Kickstarting the migration of platform-specific WebCore source code to Source/Platform

2013-02-28 Thread Darin Adler
There may be a misunderstand of what the “platform layer” is. We should not move all platform-specific files into the platform directory! Please do not make the changes in bug 110330 until we have discussed this. The idea is not that all platform-specific code is in the WebCore/platform directo

Re: [webkit-dev] Kickstarting the migration of platform-specific WebCore source code to Source/Platform

2013-02-28 Thread Darin Adler
On Feb 28, 2013, at 9:31 AM, Darin Adler wrote: > minimize the need for platform-independent code minimize the need for platform-specific code Moving all the platform-specific bits of various parts of WebCore away from the code they are tightly integrated with and into a “all platf

Re: [webkit-dev] Kickstarting the migration of platform-specific WebCore source code to Source/Platform

2013-02-28 Thread Darin Adler
On Feb 28, 2013, at 10:23 AM, John Yani wrote: > If I understood correctly, the idea is that WebCore should depend on > "platform", not vice versa. > > Still, while "platform" provides platform independent API to WebCore, it has > platform-specific bits. > > Did I get the idea correctly? Tha

Re: [webkit-dev] Kickstarting the migration of platform-specific WebCore source code to Source/Platform

2013-02-28 Thread Darin Adler
On Feb 28, 2013, at 1:02 PM, Maciej Stachowiak wrote: > I think Adam's old plan for the Platform directory was to migrate from > WebCore/platform piece-by-piece, starting with related groups of classes that > are already free of layering violations. That seems like a sensible approach > to me

Re: [webkit-dev] [webkit-help] [squirrelfish-dev] How to debug the JIT when it crash

2013-03-05 Thread Darin Adler
On Mar 4, 2013, at 2:41 AM, talking1...@gmail.com wrote: > Hi All, apologies for the spam. Please, it’s not acceptable to cross-post to all three of lists to ask for help debugging a problem. If we all did that we’d have tons of traffic on these mailing lists. Stop! Please at least narrow thi

[webkit-dev] Should we create an 8-bit path from the network stack to the parser?

2013-03-07 Thread Darin Adler
Hi folks. Today, bytes that come in from the network get turned into UTF-16 by the decoding process. We then turn some of them back into Latin-1 during the parsing process. Should we make changes so there’s an 8-bit path? It might be as simple as writing code that has more of an all-ASCII speci

Re: [webkit-dev] Licenses for WebKit contributions

2009-01-12 Thread Darin Adler
On Jan 12, 2009, at 9:02 AM, Brent Fulgham wrote: What about the click-through agreement you have to comply with to attach a patch in Bugzilla? It indicates that the user is agreeing to license under LGPL or BSD. The folks from Google posting the patches missed that, and the reviewers mis

Re: [webkit-dev] Knowing Entry and Exit points of a Resource

2009-01-12 Thread Darin Adler
On Jan 12, 2009, at 4:48 AM, mwas wrote: I would like to know the entry and exit points of a resource in WebKit, Example, how do I know if one leaves from http:// site to https:// site and vice-versa, One work around would be to use kurl.isProtocol("https://";); but this will fail on

Re: [webkit-dev] Custom String class over STL string class

2009-01-13 Thread Darin Adler
On Jan 12, 2009, at 4:53 PM, wei wang wrote: WebKit uses its own string classes instead of using STL string, I would like to ask why you want to implement your own string classes? Although webkit uses UTF-16 internally, we can also implement our own string traits to manipulate UTF-16 char u

Re: [webkit-dev] how to remove an event listener when the element attribute is removed

2009-01-14 Thread Darin Adler
On Jan 14, 2009, at 8:40 AM, Cary Clark wrote: What's the right way to fix this bug? I added detailed comments to the bug report to get you started debugging it. -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.w

Re: [webkit-dev] Allocator mismatches

2009-01-14 Thread Darin Adler
On Jan 14, 2009, at 9:55 AM, Dean McNamee wrote: I commented both bugs with some arguments about why I think allocation mismatches are important, I agree, and I have also added comments to both bugs. -- Darin ___ webkit-dev mailing list webkit

Re: [webkit-dev] Custom String class over STL string class

2009-01-15 Thread Darin Adler
On Jan 15, 2009, at 1:48 AM, wei wang wrote: Well I have another question on using string in WebKit. std::string employs its own memory management policy, but I've found that StringImpl uses 'malloc' and 'free' directly. It doesn't use copy-on- write strategy, even in its copy constructor. S

Re: [webkit-dev] Separating the WebKitSystemInterface Calls

2009-01-16 Thread Darin Adler
On Jan 16, 2009, at 1:27 PM, Brent Fulgham wrote: Or should I just use the existing 'CG' and 'CFNETWORK' guards as appropriate based on the kind of function being exposed by WebKitSystemInterface? Yes, this is what you should do. -- Darin __

Re: [webkit-dev] Using LGPL-derived source in one of the wtf files.

2009-01-19 Thread Darin Adler
On Jan 19, 2009, at 12:12 PM, Dmitry Titov wrote: In the proposed patch the ThreadingWin.cpp would contain 2 licenses - standard WebKit one and a copy of Pthread-win32 license (LGPL). The latter is there because the code for ThreadCondition is derived from the sources of that library (remov

[webkit-dev] memory leaks seen by leak bot

2009-01-20 Thread Darin Adler
Hi folks. I noticed that the leak bot is showing some memory leaks. I found and fixed three leaks that were causing most of the complaints. All in recently-changed code. https://bugs.webkit.org/show_bug.cgi?id=23448 — preferredExtensionForImageSourceType https://bugs.webkit.org/sh

Re: [webkit-dev] Getting text alignment in editing mode?

2009-01-23 Thread Darin Adler
On Jan 22, 2009, at 10:29 AM, Kevin Ollivier wrote: I'm working on adding HTML editing capabilities to the wxWebKit API, and I've gotten a lot of things working by exposing the edit commands, as well as providing a level of DOM wrapping for getting/ manipulating attributes. One thing I've be

Re: [webkit-dev] Getting text alignment in editing mode?

2009-01-23 Thread Darin Adler
On Jan 23, 2009, at 10:36 AM, Kevin Ollivier wrote: Thanks, do you have any examples of how e.g. the logic in selectionHasStyle could be tripped up by (or be insufficient for) block styles like this? Is it a matter of having it not query the alignment for non-block elements when traversing

[webkit-dev] What's up with the Chromium bots?

2009-01-25 Thread Darin Adler
There are two Chromium bots in the open source WebKit buildbot. They permanently seem to say "1077 regressions found". Also, since they build only JavaScriptCore at the moment, it seems, they are making it hard to read the rest of the buildbot output, because their build cycles are faster t

[webkit-dev] What's up with the WX bot?

2009-01-25 Thread Darin Adler
The WX bot has been failing for a while (maybe weeks) with these errors: platform/wx/RenderThemeWx.cpp: In member function 'virtual bool WebCore::RenderThemeWx::paintButton(WebCore::RenderObject*, const WebCore::RenderObject::PaintInfo&, const WebCore::IntRect&)': platform/wx/RenderThemeWx.cp

[webkit-dev] SVG pixel test failures (recent regressions?)

2009-01-25 Thread Darin Adler
It looks to me like the pixel test failures are showing some real regressions; they must be recent ones. For example, take a look at this test. http://build.webkit.org/results/trunk-mac-intel-pixel/1625/svg/text/text-align-03-b-diffs.html Does anyone know which code change caused that c

Re: [webkit-dev] SVG pixel test failures (recent regressions?)

2009-01-26 Thread Darin Adler
On Jan 26, 2009, at 1:54 AM, David Hyatt wrote: On Jan 26, 2009, at 1:56 AM, Darin Adler wrote: It looks to me like the pixel test failures are showing some real regressions; they must be recent ones. For example, take a look at this test. http://build.webkit.org/results/trunk-mac

[webkit-dev] slowest regression tests

2009-01-26 Thread Darin Adler
Hi folks. I used the "--slowest" option on my fast Mac Pro system to find out which regression tests take the longest time to run. In case you're interested, here's the list: 645.84s total testing time The 10 slowest tests: 7.62 secs: fast/js/try-catch-crash.html 5.71 secs: editing/selecti

Re: [webkit-dev] SVG pixel test failures (recent regressions?)

2009-01-26 Thread Darin Adler
On Jan 26, 2009, at 9:58 AM, David Hyatt wrote: Yes. I'd have done it myself, but I have Perian installed. run- webkit-tests is refusing to allow me to generate new pixel test results (despite the fact that Perian affects only tests that use or Quicktime). Hopefully that pointless restri

Re: [webkit-dev] Getting more buildbots green

2009-01-27 Thread Darin Adler
On Jan 27, 2009, at 7:54 AM, Holger Freyther wrote: may I read this as a rs=darin? Yes, rs=me on adding to the Skipped list to make the buildbot green! -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mai

Re: [webkit-dev] What's up with the Chromium bots?

2009-01-28 Thread Darin Adler
On Jan 26, 2009, at 12:11 PM, Darin Fisher wrote: If we do remove the bots from the front page, I hope everyone understands that we intend to re-enable them ASAP. My take on this: Green builds are great on the buildbot page page. Red builds are not. If it's straightforward to change the Chr

Re: [webkit-dev] Need help in running WebKit in debugger mode

2009-01-28 Thread Darin Adler
On Jan 28, 2009, at 10:57 AM, ying lcs wrote: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x7d03, name = 'com.apple.Safari.ServiceProvider' That's a harmless warning you get any time you run two copies of Safari at the same time, when both try to add the Safari item

[webkit-dev] #if PLATFORM(CF) || (PLATFORM(QT) && PLATFORM(DARWIN))

2009-01-30 Thread Darin Adler
I noticed that code relating to Core Foundation has the ifdef above: #if PLATFORM(CF) || (PLATFORM(QT) && PLATFORM(DARWIN)) This seems wrong. Why doesn't the CF platform switch get set when compiling with Qt and Darwin? It should. Does it cause problems? Can we just fix those? -- D

Re: [webkit-dev] #if PLATFORM(CF) || (PLATFORM(QT) && PLATFORM(DARWIN))

2009-01-30 Thread Darin Adler
On Jan 30, 2009, at 9:10 AM, Darin Fisher wrote: Just speculating, but probably because there are cases where a QT API should be used instead of a CF API. This probably just happens to be a time when the CF API is preferred (maybe a QT alternative does not exist?). The way we handle such

Re: [webkit-dev] Memory profiler

2009-02-03 Thread Darin Adler
Some quick thoughts on your message. On Feb 3, 2009, at 1:07 PM, Raul wrote: In WebCore the glue code is generated using python script from an IDL file. A perl script. The script can be changed to create ClassInfo structures that also contain the sizeof(). The sizeof on the DOM classes

Re: [webkit-dev] I encounter a problem during building WebKit

2009-02-07 Thread Darin Adler
On Feb 7, 2009, at 2:33 AM, songlinhai wrote: I failed when I built WebKit Sorry to hear that. and I got message that "Can't find environment variable $ (PRODUCTION)". That message is normal. You'll see that any time you build WebKit on Windows. The message does not reflect a failure and

Re: [webkit-dev] Grammer for html parsing

2009-02-09 Thread Darin Adler
On Feb 9, 2009, at 3:58 AM, Nilesh Patil wrote: I need to know where does grammer for html Parser has been defined in webkit. Is it a string based comparison directly with tags or done any other way? The source files are HTMLTokenizer.cpp and HTMLParser.cpp. It doesn’t use a parser genera

Re: [webkit-dev] Grammer for html parsing

2009-02-09 Thread Darin Adler
On Feb 9, 2009, at 12:23 PM, Nilesh Patil wrote: Yeah But still have a doubt. Doesn't it need to compare tags with what ever has come as response? i mean if some data comes then webkit must be identifying it in terms of HTML tags or other type of data. So is there no need of string com

Re: [webkit-dev] Grammer for html parsing

2009-02-10 Thread Darin Adler
On Feb 9, 2009, at 8:36 PM, Nilesh Patil wrote: When exactly RenderStyle and RenderObject will get associated with - say - element HTMLImageElement::createRenderer creates a RenderImage for an element. The RenderStyle is created by functions named styleForRenderer. -- Darin ___

Re: [webkit-dev] Mouse pointer change on mouse over

2009-02-12 Thread Darin Adler
On Feb 12, 2009, at 4:43 AM, Braganza Roberts wrote: I wanted to know, how does the mouse pointer changes when the mouse is moved over a link or a button in a Web page. To see all the details look for calls to setCursor in the source file EventHandler.cpp. The most interesting one is the

Re: [webkit-dev] cairo-win32 WebFrame::spoolPages

2009-02-23 Thread Darin Adler
On Feb 16, 2009, at 9:42 AM, Frank Zerangue wrote: Should this member function be conditionally compiled on PLATFORM(CG)? Presumably just its implementation. There's nothing obviously CG- specific about having a function to do printing. -- Darin

Re: [webkit-dev] problem with ajax POSTs generated from Webkit

2009-02-23 Thread Darin Adler
On Feb 18, 2009, at 11:11 PM, Steve Conover wrote: When I kick off an ajax POST from my webpage and see what comes through in my Protocol, it's an NSURLRequest (not NSMutableURLRequest) with nil HTTPBody, HTTPBodyStream, and HTTPBodyStreamForTransmission properties. The post body is nowher

Re: [webkit-dev] Why is HTTPHeaderMap a map instead of multi-map?

2009-02-23 Thread Darin Adler
On Feb 14, 2009, at 11:41 AM, Paul Pedriana wrote: Given that HTTP header fields can have the same header represented more than once, why is it that HTTPHeaderMap is a map and not a multi-map? When there are multiple HTTP header fields with the same field name, it’s just shorthand for a c

Re: [webkit-dev] Role of all loaders

2009-02-23 Thread Darin Adler
On Feb 19, 2009, at 11:17 PM, Nilesh Patil wrote: FrameLoader Controls the process of loading web pages into a frame. Contains all the loading-related functions and data instead of having them all on Frame itself. There’s one of these for each frame. DocumentLoader Controls the proces

Re: [webkit-dev] nested scopes

2009-02-24 Thread Darin Adler
On Feb 24, 2009, at 5:18 AM, Raj Kiran Talusani wrote: I am developing a wrapper API on top of JavaScriptCore for integration with my application. Here is an overview of my API. In my application scripts are executed and variables are defined in different scopes. This example shows the fun

Re: [webkit-dev] Safari-4 is webkit/trunk?

2009-02-24 Thread Darin Adler
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 ___ webkit-dev mailing list webkit-dev@lists.webk

[webkit-dev] currently failing regression tests on Mac OS X Leopard

2009-03-06 Thread Darin Adler
After fixing the test I could easily deal with myself, the following tests are failing for me: fast/block/float/t0905-c414-flt-fit-01-d-g.html fast/block/float/t0905-c5525-fltblck-00-d-ag.html fast/block/float/t0905-c5526-flthw-00-c-g.html It looks like the check-in to deal with th

Re: [webkit-dev] currently failing regression tests on Mac OS X Leopard

2009-03-06 Thread Darin Adler
On Mar 6, 2009, at 8:36 AM, Dimitri Glazkov wrote: Since I checked in the failing tests, I feel responsible, too. I'd say let's remove these tests and work to get the CSS2.1 suite updated. WDYT? I think it's an acceptable strategy to have these new separate tests. I just think someone nee

Re: [webkit-dev] currently failing regression tests on Mac OS X Leopard

2009-03-06 Thread Darin Adler
On Mar 6, 2009, at 9:25 AM, Dimitri Glazkov wrote: Jungshik already did, just waiting for review: https://bugs.webkit.org/show_bug.cgi?id=23482 I am really confused now. I thought we agreed to leave the CSS 2.1 tests alone unless the official test suite changed. I'd like to see a patch tha

Re: [webkit-dev] Where is the javascript engine code which build a call syntax tree

2009-03-08 Thread Darin Adler
On Mar 8, 2009, at 6:09 PM, ying lcs wrote: Can you please tell me where is the code which parses the js file and build a call-syntax tree? In the JavaScriptCore/parser directory. And if JavaScriptCore/interpreter/Interpreter.cpp is the code which does the javascript call-syntax execution.

Re: [webkit-dev] Regarding glyph

2009-03-10 Thread Darin Adler
On Mar 9, 2009, at 10:35 PM, Nilesh Patil wrote: What exactly is glyph? Is it something to do with text rendering? http://en.wikipedia.org/wiki/Glyph If yes then how this is related to ICU ? It’s not. -- Darin ___ webkit-dev mailing list we

Re: [webkit-dev] diff between two revisions of webkit

2009-03-10 Thread Darin Adler
On Mar 9, 2009, at 10:05 PM, Nitin wrote: how can i get the diff between two revisions of webkit. lets take an example of r36XXX and r40XXX. The source code of WebKit is in a Subversion repository. Subversion is a source code control system that lets you get the differences between versions

Re: [webkit-dev] Media Codec

2009-03-10 Thread Darin Adler
On Mar 10, 2009, at 1:26 PM, Chen Kwan-MGIA0013 wrote: I'm new to WebKit. I'm trying to understand how video/audio codec's can be incorporated or plugged into the platform but didn't have much success. I wonder if anyone can answer my questions and/or provide the pointers for detail info.

Re: [webkit-dev] about v1 and v2

2009-03-11 Thread Darin Adler
On Mar 11, 2009, at 3:42 AM, zhenghe zhang wrote: After JavaScriptCore parse the js functions, and there is "v1" and "v2" in identifierTable .Now I want to know what are these identifiers function Those are from the numeric compare function, used to detect numeric sort functions when Arra

Re: [webkit-dev] Media Codec

2009-03-11 Thread Darin Adler
On Mar 11, 2009, at 9:40 AM, Chen Kwan-MGIA0013 wrote: Will the QuickTime plug-ins developed over Windows work the same for iPhone (other than the fact that it needs to be ported to using Objective-C)? I can’t answer iPhone development questions. I suggest signing up for the iPhone develo

Re: [webkit-dev] about "token" in JavaScriptCore

2009-03-13 Thread Darin Adler
On Mar 12, 2009, at 8:46 PM, zhenghe zhang wrote: I use gdb to track the lexer::lex(void *p1,void *p2), I don't know where the "token" stored. The token is the return value of that function. It’s used by the bison- generated parser. The yacc family of parser generators, including bison, re

Re: [webkit-dev] Regarding kjs:Window:clear()

2009-03-13 Thread Darin Adler
On Mar 13, 2009, at 12:45 AM, Nilesh Patil wrote: What does kjs:Window:clear() do ? You must be looking at an old version of the WebKit source tree; there is no longer a function of that name. The JSDOMWindowBase::clear function clears out the state of a DOM window object, leaving it in

Re: [webkit-dev] Shared

2009-03-13 Thread Darin Adler
On Mar 13, 2009, at 4:17 AM, natasha gabriella wrote: I happened to go through code of webkit an sfound some Shared class. That class template has a new name in the latest WebKit; it’s now named RefCounted<>. What exactly it does. It implements simple intrusive reference counting. Is

Re: [webkit-dev] Webkit Design and MVC design pattern

2009-03-16 Thread Darin Adler
On Mar 16, 2009, at 1:21 PM, Meryl Silverburgh wrote: Does Webkit follow MVC design pattern? Roughly. But it’s not really practical to follow the MVC pattern for a web engine. For example the DOM standards and de facto standards from other browsers put quite a bit of view/controller mach

Re: [webkit-dev] Check for NaN value

2009-03-16 Thread Darin Adler
On Mar 16, 2009, at 1:48 PM, Husam Senussi wrote: I'm trying to find out API or method to check for NaN value in JavaScriptCore. If you are writing code to add to JavaScriptCore and need a function to tell you if a value is NaN, you can call the standard C library isnan function from . To

Re: [webkit-dev] How to use JavaScriptCore in my own project

2009-03-17 Thread Darin Adler
On Mar 17, 2009, at 1:24 PM, Gustaw Smolarczyk wrote: I want to use JavaScriptCore as script engine in my own project in C+ +, but I don't know how to do that right way. There are JavaScriptCore, JavaScriptGlue, etc in WebKit source and I don't know how to use JavaScript engine from WebKit s

Re: [webkit-dev] x86-64 JIT

2009-03-19 Thread Darin Adler
On Mar 19, 2009, at 10:12 AM, Mike Hommey wrote: Except alert() isn't defined under jsc. Are there any other non-js (native) functions available in jsc, since it seems to be the problem ? Sure, there are tons and tons of native functions; almost every function on every built-in JavaScript

Re: [webkit-dev] IMG tag

2009-03-19 Thread Darin Adler
On Mar 19, 2009, at 1:51 PM, Ravi Ramachandra wrote: I am very new to webkit. Pardon my silly question. I wanted to know when and where do we decode a JPEG image file? For example if on a HTML page if i encounter tag and with that tag we have a src=".http:////some_picture.jpg";, how does

Re: [webkit-dev] submitting patch

2009-03-21 Thread Darin Adler
On Mar 21, 2009, at 5:19 PM, Husam Senussi wrote: How would someone submit patch !!! The details are on this web page . -- Darin ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists

Re: [webkit-dev] HAVE_LANGINFO_H and OS X

2009-03-23 Thread Darin Adler
On Mar 23, 2009, at 12:49 PM, Kevin Ollivier wrote: It does in fact fix the problem, but to get the fix I need to explicitly #define HAVE_LANGINFO_H 1 on Mac. I'm wondering if it's safe to define it to 1 for all ports building under Darwin, or if I should keep the fix isolated to the wx por

Re: [webkit-dev] HAVE_LANGINFO_H and OS X

2009-03-23 Thread Darin Adler
But I think that all DARWIN-targeted ports and indeed any port where PLATFORM(CF) is true, should use the superior version based on CFDateFormatter. That’s an even better fix for Mac OS X. -- Darin ___ webkit-dev mailing list webkit-dev@lists.w

Re: [webkit-dev] Pushing data to plugin

2009-03-24 Thread Darin Adler
On Mar 24, 2009, at 2:36 AM, Jack Wootton wrote: But I have one question. Looking at the following structure: typedef struct _NPP { void*pdata;/* plug-in private data */ void*ndata;/* netscape private data */ } NPP_t; From reading the documentation ndat

Re: [webkit-dev] JSxxxRelease/Retain - some guidance?

2009-03-26 Thread Darin Adler
Here’s a little more beyond what Maciej said: On Mar 26, 2009, at 8:27 AM, Patrick Mueller wrote: I'm familiar from Java JNI and other 'native' bindings for languages for the needs of 'pinning' objects both to keep them from moving and/ or keep them from being GC'd. That’s JSValueProtect an

Re: [webkit-dev] A question about JavaScript and Dom binding

2009-03-30 Thread Darin Adler
On Mar 30, 2009, at 5:54 AM, naixuan guan wrote: 1.Could I get the string value of the SRC attribute through WebKit source code and how to get the value? One way is with the Element::getAttribute function. 2.How does JavaScript change the Dom tree? where are the APIs? are they in binding/j

Re: [webkit-dev] Options for execCommand in Webkit

2009-04-04 Thread Darin Adler
On Apr 4, 2009, at 1:45 AM, Raja Sekharan wrote: What are all the operations that can be done through the execCommand of document object? I am not able to find this in any of the webkit documentation. I don’t know where there might be documentation for this, but the implementation uses a

Re: [webkit-dev] AppCache functionality provided by the embedder of webkit

2009-04-07 Thread Darin Adler
On Apr 7, 2009, at 10:52 AM, Michael Nordman wrote: We've decided to hoist most the functionality provided by the app cache into Chrome's main browser process, Perhaps other WebKit ports will want a similar structure. Is there a way this code in the main browser process could still be WebKi

Re: [webkit-dev] FW: Creating custom DOM events

2009-04-08 Thread Darin Adler
WebKit’s API does not offer a way to add a custom HTML element or attribute. You can read the values of attributes but you can’t make setting an attribute have an effect. You can create a custom HTML element, but you can’t make it render any differently than any other unknown element would

Re: [webkit-dev] about WTF::HashMap::iterator

2009-04-09 Thread Darin Adler
On Apr 8, 2009, at 9:02 PM, ZHOU Xiao-bo wrote: WTF::Hashmap::iterator uses WTF::HashTable::iterator as its m_impl. When you call 'remove( oldIter )', the current 'iter' may be changed. And it's not about memory reallocation or element shift, That’s incorrect. It is about memory real

Re: [webkit-dev] about WTF::HashMap::iterator

2009-04-09 Thread Darin Adler
On Apr 8, 2009, at 9:02 PM, ZHOU Xiao-bo wrote: it's not about memory reallocation or element shift, but it's because the member variable 'm_table' in WTF::HashTable::iterator may become NULL if there is only one entry in the HashMap before you call remove( olditer ). This is a misundersta

Re: [webkit-dev] Add custom event into Webkit

2009-04-09 Thread Darin Adler
On Apr 9, 2009, at 2:40 AM, Tony Louaze wrote: I want to add a custom event into Webkit without modify and compile Webkit. It all depends what you mean by a custom event. If you want to send an event with a special name but no special data attached, you can do this easily with standard DO

Re: [webkit-dev] Add custom event into Webkit

2009-04-09 Thread Darin Adler
On Apr 9, 2009, at 9:11 AM, Ross Lillie wrote: The next piece of the puzzle, however, is dispatching events generated by my external code into the Javascript/DOM environment. These events ideally require special data to be attached. From my admittedly limited understanding of WebKit intern

Re: [webkit-dev] HTMLSelectElement and namedItem()

2009-04-09 Thread Darin Adler
On Apr 9, 2009, at 11:50 AM, David Moore wrote: So what's the right thing to do here? Should we be returning null or the element? Normally we take a look at what other browsers do when deciding on this sort of this. We should look at IE and Firefox behavior. Also, lets check if HTML 5 has

Re: [webkit-dev] WebKit caching

2009-04-10 Thread Darin Adler
There are three different caches involved in WebKit on Mac OS X. A) The resource cache in the NSURL networking layer, which caches both in memory and on disk. B) The resource cache inside WebCore, which caches in memory. C) The page cache in WebCore, a higher level cache which only

Re: [webkit-dev] WebKit caching

2009-04-11 Thread Darin Adler
On Apr 11, 2009, at 6:54 PM, Adam Thorsen wrote: I also noticed recently that there is a "Disable Caches" option under the Develop menu on Safari. I tested it using the same procedure and it indeed did not cache the javascript, so I know this is possible one way or another. It’s true, Di

Re: [webkit-dev] WebKit caching

2009-04-12 Thread Darin Adler
do to track this down? Thanks again, -Adam On Apr 11, 2009, at 11:51 PM, Darin Adler wrote: On Apr 11, 2009, at 6:54 PM, Adam Thorsen wrote: I also noticed recently that there is a "Disable Caches" option under the Develop menu on Safari. I tested it using the same proced

Re: [webkit-dev] content-disposition, utf-8 and webkit

2009-04-12 Thread Darin Adler
On Apr 12, 2009, at 7:08 PM, Andre-John Mas wrote: I am using the Webkit nightlies on MacOS X, and I noticed that the following header doesn't seem to give the expected results: content-disposition: inline; filename*="utf-8''%E8%92%99%E7%89%B9%E5%88%A9%E5%B0%94.vcf" In Firefox it provides

Re: [webkit-dev] WebKit Layout test failures on Windows

2009-04-21 Thread Darin Adler
On Apr 21, 2009, at 7:05 AM, Kulanthaivel wrote: If these are font problems then please suggest me how to get these fonts to pass the layout tests in Windows. The easiest way I can think of to get the fonts is to get them from a Mac, if you have one. They’re all fonts included with Mac OS X

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 Firefo

Re: [webkit-dev] ASYNC attribute for

2009-04-28 Thread Darin Adler
Bug 20710: WebKit should support defer and async on script elements https://bugs.webkit.org/show_bug.cgi?id=20710 If someone wants to see this feature in WebKit, it’s be great to get started on it and see what parts of it are trickiest. Making interesting test cases that cover not only the fe

Re: [webkit-dev] Where is the code for "operator loading"?

2009-04-29 Thread Darin Adler
On Apr 29, 2009, at 2:53 AM, Nitin wrote: One question to ask Please don’t quote a large message that is not relevant to your message. That’s bad manners. Please don’t reply to an existing message thread to ask a question. Also not polite. Where is the code for operator loading like "=

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

2009-04-29 Thread Darin Adler
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 MacO

Re: [webkit-dev] How can I listen for a page load complete event

2009-04-29 Thread Darin Adler
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

Re: [webkit-dev] How can I listen for a page load complete event

2009-04-30 Thread Darin Adler
On Apr 30, 2009, at 10:55 AM, Meryl Silverburgh wrote: 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). Implement a frame load delegate, and implement the - webView:didFinishLoadForFrame: method. There’s

Re: [webkit-dev] Plugins with no MIME type

2009-05-03 Thread Darin Adler
On May 3, 2009, at 12:30 AM, Loukas Kalenderidis wrote: I'm just starting out writing a WebKit plugin which will intercept HTTP requests and responses and manipulate them in various ways. I'm a bit unsure as to how to go about getting this sort of plugin to load, as it doesn't handle a spec

Re: [webkit-dev] when can I treat a JSValueRef as a JSObjectRef?

2009-05-04 Thread Darin Adler
On May 4, 2009, at 10:17 AM, Patrick Mueller wrote: Since JSValueRef and JSObjectRef are typedef's to the same OpaqueJSValue structure (pointer) It’s easy to get the wrong idea about this by looking at the implementation. These two typedefs use the same structure, but they use const in a

Re: [webkit-dev] when can I treat a JSValueRef as a JSObjectRef?

2009-05-04 Thread Darin Adler
On May 4, 2009, at 10:53 AM, Patrick Mueller wrote: The docs I was reading were in fact the Apple docs I believe the document you cited is automatically generated from the comments in the JavaScriptCore headers. So if we improve the documentation comments in the headers in the WebKit open

Re: [webkit-dev] Proposal for a new way to handle porting #ifdefs

2009-05-05 Thread Darin Adler
On May 4, 2009, at 7:45 PM, George Staikos wrote: 1) In some cases some things apply to more than one OS so we have: #if OS(x) || OS(y) || OS(z) ... I think we should use: #if OS(x,y,z) How? Macros don’t have overloading with the same macro but different numbers of parameters. 3) I'm not s

Re: [webkit-dev] How can I listen for a page load complete event

2009-05-05 Thread Darin Adler
On May 4, 2009, at 11:32 PM, Meryl Silverburgh wrote: Thank you. If implementating the 'didFinishLoadForFrame' method is to listen for browser finishing loading everything, then some please in webkit code must call the didFinishLoadForFrame' to tell the delegate that page load is done, righ

Re: [webkit-dev] MessagePorts and garbage collection

2009-05-07 Thread Darin Adler
We consider the current JavaScriptCore protected set to be something deprecated that we’d like to eliminate. We have been steadily decreasing the number of uses of it. All other things being equal, I think it would be good to keep the new mechanism separate. -- Darin __

Re: [webkit-dev] PageGroups (and the localStorage being stored in it)

2009-05-07 Thread Darin Adler
On May 7, 2009, at 4:56 PM, Jeremy Orlow wrote: I'm continuing to work on https://bugs.webkit.org/show_bug.cgi?id=25376 and noticed that the map of origins to localStorageAreas is owned by the PageGroup class. I'm having a bit of trouble understanding what exactly page groups are used for.

Re: [webkit-dev] PageGroups (and the localStorage being stored in it)

2009-05-08 Thread Darin Adler
On May 7, 2009, at 8:49 PM, Jeremy Orlow wrote: One more question: are there any use cases where setGroupName could occur after window.localStorage() had been called? I don’t know. I don’t think it’s something we can support. It’s possible we can change setGroupName to have no effect once a

Re: [webkit-dev] Mapping Results between Layout-tests and Webkit-Supported Features

2009-05-08 Thread Darin Adler
On May 7, 2009, at 11:24 PM, g_siddu wrote: I am running webkit-layout tests on the Gtk Platfrom and with the tests being run i am trying to map them with those of the features provided by the webkit(http://trac.webkit.org/wiki/SpecSupport). There’s no real way to map a directory onto a fea

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

2009-05-13 Thread Darin Adler
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 usin

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

2009-05-13 Thread Darin Adler
On May 13, 2009, at 8:59 AM, Lucius Fox wrote: 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)? To capture more than what’s currently visible you can use these NSView methods with

Re: [webkit-dev] squirrelfish-bytecode

2009-05-13 Thread Darin Adler
On May 13, 2009, at 9:09 AM, Meryl Silverburgh wrote: You mention native code. Under what situation will squirrelfish generate native code? I thought this is how v8 works, but not squirrelfish. Squirrelfish parse JS files and generate its internal bytecode and its VM will execute the byteco

Re: [webkit-dev] Using WebKit renderer to produce PDF output

2009-05-13 Thread Darin Adler
On May 13, 2009, at 2:41 PM, Ben Harper wrote: Unfortunately the platform is Windows. Regarding the method that you're describing - I assume the PDF generation is handled by CoreGraphics? Yes. -- Darin ___ webkit-dev mailing list webkit-dev@

Re: [webkit-dev] Using WebKit renderer to produce PDF output

2009-05-13 Thread Darin Adler
On May 13, 2009, at 2:11 PM, Ben Harper wrote: I need to produce a tool that can generate PDFs from HTML. The best solution I can think of is to use WebKit's layout engine, and plug my own PDF generator in as a renderer backend. I don't want to reinvent the wheel though - so I'm asking here

Re: [webkit-dev] How to access formatted Java script Console message ?

2009-05-14 Thread Darin Adler
On May 14, 2009, at 8:48 AM, Gopal Raghavan wrote: Any idea why only the first argument is passed to client ? It’s a bug. There’s an internal Apple report of this in the Mac OS X public API that ChromeClient is used for: -webView:addMessageToConsole: passes console.log's first argu

<    1   2   3   4   5   6   7   8   9   10   >