[Webkit-unassigned] [Bug 35374] MediaPlayer has no reliable method of accessing it's owning document
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 25 07:44:31 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=35374
--- Comment #4 from Darin Adler <darin at apple.com> 2010-02-25 07:44:31 PST ---
(From update of attachment 49458)
> +Document* HTMLMediaElement::mediaPlayerOwningDocument()
> +{
> + Document* d = document();
> +
> + if (!d)
> + d = ownerDocument();
> +
> + return d;
> +}
The implementation of this function is needlessly complex. The Node::document()
function never returns 0 for an element, and ownerDocument() always returns the
same thing as document() except when ownerDocument() returns 0.
--
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