[Webkit-unassigned] [Bug 85844] Inline Node::traverseNextNode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 7 17:29:14 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=85844
--- Comment #14 from Darin Adler <darin at apple.com> 2012-05-07 17:29:14 PST ---
(From update of attachment 140632)
View in context: https://bugs.webkit.org/attachment.cgi?id=140632&action=review
> Source/WebCore/dom/Node.h:853
> +inline Node* Node::parentNodeAsNode() const
> +{
> + // Avoid circular dependency with ContainerNode.
> + return reinterpret_cast<Node*>(parentNode());
> +}
Normally the way we handle stuff like this is to put the functions into ContainerNode.h, instead of a trick like this one.
The downside then, is that anyone calling these functions has to include ContainerNode.h, but they probably do anyway.
--
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