[Webkit-unassigned] [Bug 103772] New: Teach OwnPtr and RefPtr to understand Arena'd objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 30 13:42:17 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=103772
Summary: Teach OwnPtr and RefPtr to understand Arena'd objects
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: mjs at apple.com, abarth at webkit.org,
jchaffraix at webkit.org, inferno at chromium.org
Teach OwnPtr and RefPtr to understand Arena'd objects
I believe it should be possible with template-specializations for OwnPtr<RenderObject>?
RenderObject's always have a node (even if that node is the Document), so node()->document()->arena() should always work for retrieving the arena.
This would allow deployment of OwnPtr/RefPtr throughout the rendering tree and should make the code cleaner and the lifetimes of many objects easier to follow.
(If such c++ template-foolery is not possible, please feel encouraged to correct me.)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list