[Webkit-unassigned] [Bug 24760] Clean up Position.h

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 23 11:56:28 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24760





------- Comment #11 from darin at apple.com  2009-03-23 11:56 PDT -------
(In reply to comment #9)
> (In reply to comment #7)
> > My biggest concern is that if you do this, you programmers will have a
> > difficult choice between using PassRefPtr<Node> or Node* with no reference
> > count churn, or Position with greater capabilities and a stronger model, but
> > mandatory reference count churn.
> 
> I don't understand.  Position objects currently ref the node pointer.  I intend
> to keep it that way.

Position is a convenience today and in theory can get the same behavior more
efficiently by having your own RefPtr/offset pair and use PassRefPtr as you
like. There’s no PassPosition.

But the more that Position becomes an abstraction that does fancier things than
a RefPtr/offset pair, the more the lack of a PassPosition becomes a problem.
Maybe we need a PassPosition.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list