Re: [webkit-dev] What's the difference RefPtr and OwnPtr?

2011-12-13 Thread Ryosuke Niwa
I've filed https://bugs.webkit.org/show_bug.cgi?id=74470 for the future reference. - Ryosuke On Tue, Dec 13, 2011 at 5:39 PM, Paul Hsu wrote: > Very helpful. > > Thanks. > > Paul > > > > On Wed, Dec 14, 2011 at 1:30 AM, Eric Seidel wrote: > >> OwnPtr holds a pointer and calls "delete" on that

Re: [webkit-dev] What's the difference RefPtr and OwnPtr?

2011-12-13 Thread Paul Hsu
Very helpful. Thanks. Paul On Wed, Dec 14, 2011 at 1:30 AM, Eric Seidel wrote: > OwnPtr holds a pointer and calls "delete" on that pointer when it goes > out of scope. > Just like RefPtr, you can .release() the pointer from an OwnPtr, into > a PassRefPtr. > PassOwnPtr functions similarly to a

Re: [webkit-dev] URL validating process in WebKit

2011-12-13 Thread Joe Mason
If you are using webkit to author a browser, rather than making changes to webkit itself, you should ask questions on webkit-h...@lists.webkit.org. Assuming you're writing code in a layer that has access to KURL, just pass your string to KURL and call isValid(). > -Original Message- > F

Re: [webkit-dev] URL validating process in WebKit

2011-12-13 Thread Ghita
Finally, I think I don't need to run unit tests to get the part of the source code that deals only with the validity of a url. Based on your experience, what is the best way to get this, I tried to create a new project, copy the Kurl class of webkit and put it in my new project, and a main file th

Re: [webkit-dev] URL validating process in WebKit

2011-12-13 Thread Ghita
Thank you for your quick answer! In fact, my goal is to test only the functionality of the validity of one URL(I want to extract from the source code the part where he treats url validity and change it later according to my own web browser). You said that the tests for the urls are in LayoutTest/f

Re: [webkit-dev] URL validating process in WebKit

2011-12-13 Thread Ghita
Thank you for your quick answer! In fact, my goal is to test only the functionality of the validity of one URL(I want to extract from the source code the part where he treats url validity and change it later according to my own web browser). You said that the tests for the urls are in LayoutTest/f

Re: [webkit-dev] URL validating process in WebKit

2011-12-13 Thread Benjamin Poulain
On Tue, Dec 13, 2011 at 12:00 PM, Ghita wrote: > I need to know how webkit validates a URL address entered by a user in the > web browser, I tried to follow step by step the compiler, but since I'm new, > I'm completely lost in the webkit source code, so I would like to make a > unit test to test

[webkit-dev] URL validating process in WebKit

2011-12-13 Thread Ghita
Hi all, I need to know how webkit validates a URL address entered by a user in the web browser, I tried to follow step by step the compiler, but since I'm new, I'm completely lost in the webkit source code, so I would like to make a unit test to test the validity of one URL address, how I can do

[webkit-dev] URL validating process in WebKit

2011-12-13 Thread Ghita
Hi all, I need to know how webkit validates a URL address entered by a user in the web browser, I tried to follow step by step the compiler, but since I'm new, I'm completely lost in the webkit source code, so I would like to make a unit test to test the validity of one URL address, how I can do

Re: [webkit-dev] What's the difference RefPtr and OwnPtr?

2011-12-13 Thread Eric Seidel
OwnPtr holds a pointer and calls "delete" on that pointer when it goes out of scope. Just like RefPtr, you can .release() the pointer from an OwnPtr, into a PassRefPtr. PassOwnPtr functions similarly to an OwnPtr (in that it will delete its pointer when it goes out of scope) except when you assign

Re: [webkit-dev] What's the difference RefPtr and OwnPtr?

2011-12-13 Thread HongChangWan
webkit-dev is not appropriate for your question. I think you should mail webkit-help. 2011/12/13 Paul Hsu > Hi all, > > I'm a newbie in webkit development. > > I found a great article about 'RefPtr and PassRefPtr' here. > http://www.webkit.org/coding/RefPtr.html > > But there's no document abou

[webkit-dev] What's the difference RefPtr and OwnPtr?

2011-12-13 Thread Paul Hsu
Hi all, I'm a newbie in webkit development. I found a great article about 'RefPtr and PassRefPtr' here. http://www.webkit.org/coding/RefPtr.html But there's no document about 'OwnPtr and PassOwnPtr'. I would like to ask what's the difference RefPtr and OwnPtr? How to use OwnPtr and PassOwnPtr?