Bug 44752

Summary: RefPtr documentation needs update
Product: WebKit Reporter: Yuta Kitamura <yutak>
Component: WebKit WebsiteAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://webkit.org/coding/RefPtr.html

Description Yuta Kitamura 2010-08-27 00:29:34 PDT
adoptRef assertion was turned on (bug 41547), but it seemed that we forgot to update RefPtr documentation (http://webkit.org/coding/RefPtr.html).

For example, a few examples contains the following line:

    RefPtr<Node> a = new Node;
Comment 1 Darin Adler 2010-08-27 10:10:36 PDT
That would work fine if Node is a reference counted class that does not derive from RefCounted. The new assertion is specific to RefCounted.
Comment 2 Darin Adler 2010-08-27 10:41:51 PDT
I made some changes in <http://trac.webkit.org/changeset/66233> that I think resolve this.