[Webkit-unassigned] [Bug 50396] REGRESSION(r72783): DOMActivate fires multiple times from input type=file
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 3 09:41:45 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=50396
--- Comment #7 from Dimitri Glazkov (Google) <dglazkov at chromium.org> 2010-12-03 09:41:45 PST ---
(In reply to comment #6)
> (From update of attachment 75502 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=75502&action=review
>
> > WebCore/dom/Node.cpp:1205
> > + if (!node)
> > + return false;
> > + if (this == node)
> > + return true;
> > + for (ContainerNode* n = node->parentOrHostNode(); n; n = n->parentOrHostNode()) {
> > + if (n == this)
> > + return true;
> > + }
> > + return false;
>
> I like the way you wrote this, but I would have written it this way:
>
> for (Node* n = node; n; n = n->parentOrHostNode()) {
> if (n == this)
> return true;
> }
> return false;
>
> No need for the special handling of the node itself.
I like it. I'll change before landing.
--
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