[Webkit-unassigned] [Bug 35325] [v8] Missing wasCreatedFromMarkup fn in V8LazyEventListener.h

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 25 11:18:00 PST 2010


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





--- Comment #3 from Robert Kroeger <rjkroege at chromium.org>  2010-02-25 11:18:00 PST ---
(In reply to comment #2)
> (From update of attachment 49355 [details])
> > +        Patch was tested and passed the Chromium try bots.
> 
> Try bot info shouldn't go in the ChangeLog. If you're going to include it,
> leave it in the bug.

This is easily removed. I'll upload a new patch without it after dealing with
the below.

> 
> > +        // Needed to match JSC semantics inside shared SVG code.
> > +        virtual bool wasCreatedFromMarkup() const { return true; }
> > +
> 
> This comment doesn't really help me understand why this change is necessary. 
> It would probably be better off explaining why either set of javascript
> bindings needs to override EventListener::wasCreatedFromMarkup(), rather than
> just saying that we're matching JSC. Alternatively, you could present a case
> why a comment isn't necessary here :)

I'm not sure how to address this comment. 

I'd be happy to remove the comment. Deleting is easy. :-) Argument in favour of
removing the comment: it would match the brevity of the un-commented 
JSLazyEventListener::wasCreatedFromMarkup()

I know how the presence of JSLazyEventListener::wasCreatedFromMarkup changes
the behaviour of the SVG event handling code: this method returns true if the
clone of a SVG Node (into the shadow tree) includes event handlers already or
if they need to be added in a second pass over the DOM.

I think that this patch (without the comment) is the smallest amount of code
that corrects Chromium's SVG event dispatch behaviour to match with WebKit. 

Please advise me further on what I need to do to make the patch acceptable.

> 
> 
> r- on nitpicks.

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