Bug 44752 - RefPtr documentation needs update
Summary: RefPtr documentation needs update
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Website (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Darin Adler
URL: http://webkit.org/coding/RefPtr.html
Depends on:
Reported: 2010-08-27 00:29 PDT by Yuta Kitamura
Modified: 2010-08-27 10:41 PDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.