[Webkit-unassigned] [Bug 103772] Teach OwnPtr and RefPtr to understand Arena'd objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 1 16:48:05 PST 2012


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





--- Comment #10 from Eric Seidel <eric at webkit.org>  2012-12-01 16:50:25 PST ---
(In reply to comment #9)
> (In reply to comment #8)
> > > Anonymous objects should still have an m_node, though node() will be null:
> > 
> > If so, this function may crash...
> > 
> > RenderArena* renderArena() const { return document()->renderArena(); }
> > 
> > ...because this function deferences m_node:
> > 
> >     Document* document() const { return m_node->document(); }
> 
> What I'm saying is that (to the best of my understanding) node() is null for anonymous objects but m_node is not. node() specifically checks for isAnonymous() to achieve this. There may well also be cases where even m_node is null. I do not know enough about rendering details to say for sure.

That matches my understanding.

-- 
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