[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.22-985-g3c00f00

eric at webkit.org eric at webkit.org
Wed Mar 17 18:04:06 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit d0d78611a4fb4e4d59071299a717bbe416ed2e79
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Feb 27 01:17:55 2010 +0000

    2010-02-26  Robert Kroeger  <rjkroege at 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):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55326 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 1c837a3..bb02697 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2010-02-26  Robert Kroeger  <rjkroege at 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):
+
 2010-02-26  Arno Renevier  <arno at renevier.net>
 
         Reviewed by Gustavo Noronha Silva.
diff --git a/WebCore/bindings/v8/V8LazyEventListener.h b/WebCore/bindings/v8/V8LazyEventListener.h
index 078dcf1..f174d23 100644
--- a/WebCore/bindings/v8/V8LazyEventListener.h
+++ b/WebCore/bindings/v8/V8LazyEventListener.h
@@ -60,6 +60,12 @@ namespace WebCore {
 
         virtual v8::Local<v8::Value> callListenerFunction(ScriptExecutionContext*, v8::Handle<v8::Value> jsEvent, Event*);
 
+        // Needs to return true for all event handlers implemented in JavaScript so that
+        // the SVG code does not add the event handler in both
+        // SVGUseElement::buildShadowTree and again in
+        // SVGUseElement::transferEventListenersToShadowTree
+        virtual bool wasCreatedFromMarkup() const { return true; }
+
         String m_functionName;
         bool m_isSVGEvent;
         String m_code;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list