Changeset 55326 in webkit


Ignore:
Timestamp:
Feb 26, 2010 5:17:55 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-26 Robert Kroeger <rjkroege@chromium.org>

Reviewed by Nate Chapin

To fire each event handler registered on an SVG node once per
event, Chromium needs an implementation of wasCreatedFromMarkup
added to V8LazyEventListener.h that matches the one in
WebKit/WebCore/bindings/js/JSLazyEventListener.h.

This patch adds such a matching implementation of wasCreatedFromMarkup
to V8LazyEventListener.h.

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

  • bindings/v8/V8LazyEventListener.h: (WebCore::V8LazyEventListener::wasCreatedFromMarkup):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r55325 r55326  
     12010-02-26  Robert Kroeger  <rjkroege@chromium.org>
     2
     3        Reviewed by Nate Chapin
     4
     5        To fire each event handler registered on an SVG node once per
     6        event, Chromium needs an implementation of wasCreatedFromMarkup
     7        added to V8LazyEventListener.h that matches the one in
     8        WebKit/WebCore/bindings/js/JSLazyEventListener.h.
     9       
     10        This patch adds such a matching implementation of wasCreatedFromMarkup
     11        to V8LazyEventListener.h.
     12       
     13        https://bugs.webkit.org/show_bug.cgi?id=35325
     14
     15        * bindings/v8/V8LazyEventListener.h:
     16        (WebCore::V8LazyEventListener::wasCreatedFromMarkup):
     17
    1182010-02-26  Arno Renevier  <arno@renevier.net>
    219
  • trunk/WebCore/bindings/v8/V8LazyEventListener.h

    r51960 r55326  
    6161        virtual v8::Local<v8::Value> callListenerFunction(ScriptExecutionContext*, v8::Handle<v8::Value> jsEvent, Event*);
    6262
     63        // Needs to return true for all event handlers implemented in JavaScript so that
     64        // the SVG code does not add the event handler in both
     65        // SVGUseElement::buildShadowTree and again in
     66        // SVGUseElement::transferEventListenersToShadowTree
     67        virtual bool wasCreatedFromMarkup() const { return true; }
     68
    6369        String m_functionName;
    6470        bool m_isSVGEvent;
Note: See TracChangeset for help on using the changeset viewer.