Bug 44752
| Summary: | RefPtr documentation needs update | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yuta Kitamura <yutak> |
| Component: | WebKit Website | Assignee: | 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 | ||
Yuta Kitamura
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;
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Darin Adler
That would work fine if Node is a reference counted class that does not derive from RefCounted. The new assertion is specific to RefCounted.
Darin Adler
I made some changes in <http://trac.webkit.org/changeset/66233> that I think resolve this.