<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>35325</bug_id>
          
          <creation_ts>2010-02-23 19:47:56 -0800</creation_ts>
          <short_desc>[v8] Missing wasCreatedFromMarkup fn in V8LazyEventListener.h</short_desc>
          <delta_ts>2010-02-26 17:18:04 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Kroeger">rjkroege</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dglazkov</cc>
    
    <cc>japhet</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193220</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Kroeger">rjkroege</who>
    <bug_when>2010-02-23 19:47:56 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193225</commentid>
    <comment_count>1</comment_count>
      <attachid>49355</attachid>
    <who name="Robert Kroeger">rjkroege</who>
    <bug_when>2010-02-23 20:30:14 -0800</bug_when>
    <thetext>Created attachment 49355
Patch to fix bug 35325</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193806</commentid>
    <comment_count>2</comment_count>
      <attachid>49355</attachid>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2010-02-25 10:37:44 -0800</bug_when>
    <thetext>Comment on attachment 49355
Patch to fix bug 35325

&gt; +        Patch was tested and passed the Chromium try bots.

Try bot info shouldn&apos;t go in the ChangeLog. If you&apos;re going to include it, leave it in the bug.

&gt; +        // Needed to match JSC semantics inside shared SVG code.
&gt; +        virtual bool wasCreatedFromMarkup() const { return true; }
&gt; +

This comment doesn&apos;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&apos;re matching JSC. Alternatively, you could present a case why a comment isn&apos;t necessary here :)


r- on nitpicks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193812</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Kroeger">rjkroege</who>
    <bug_when>2010-02-25 11:18:00 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 49355 [details])
&gt; &gt; +        Patch was tested and passed the Chromium try bots.
&gt; 
&gt; Try bot info shouldn&apos;t go in the ChangeLog. If you&apos;re going to include it,
&gt; leave it in the bug.

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

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

I&apos;m not sure how to address this comment. 

I&apos;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&apos;s SVG event dispatch behaviour to match with WebKit. 

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

&gt; 
&gt; 
&gt; r- on nitpicks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194182</commentid>
    <comment_count>4</comment_count>
      <attachid>49604</attachid>
    <who name="Robert Kroeger">rjkroege</who>
    <bug_when>2010-02-26 11:32:12 -0800</bug_when>
    <thetext>Created attachment 49604
patch for bug 35325</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194184</commentid>
    <comment_count>5</comment_count>
      <attachid>49604</attachid>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2010-02-26 11:36:19 -0800</bug_when>
    <thetext>Comment on attachment 49604
patch for bug 35325

Great, thanks!

&gt; +        Reviewed by Nate Chapin

For future reference, typically we just leave the &quot;Reviewed by NOBODY (OOPS!).&quot; in place until a patch has received an r+.  The commit queue scripts will take care of replace it with the name of the person who actually approved the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194371</commentid>
    <comment_count>6</comment_count>
      <attachid>49604</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-26 17:18:00 -0800</bug_when>
    <thetext>Comment on attachment 49604
patch for bug 35325

Clearing flags on attachment: 49604

Committed r55326: &lt;http://trac.webkit.org/changeset/55326&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194372</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-26 17:18:04 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49355</attachid>
            <date>2010-02-23 20:30:14 -0800</date>
            <delta_ts>2010-02-26 11:32:12 -0800</delta_ts>
            <desc>Patch to fix bug 35325</desc>
            <filename>bug35325.patch</filename>
            <type>text/plain</type>
            <size>1576</size>
            <attacher name="Robert Kroeger">rjkroege</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NDQzZGY0Zi4uOTdkNDRlMCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwyMiBAQAorMjAxMC0wMi0yMyAgUm9iZXJ0IEtyb2Vn
ZXIgIDxyamtyb2VnZUBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgVG8gZmlyZSBlYWNoIGV2ZW50IGhhbmRsZXIgcmVnaXN0ZXJl
ZCBvbiBhbiBTVkcgbm9kZSBvbmNlIHBlcgorICAgICAgICBldmVudCwgQ2hyb21pdW0gbmVlZHMg
YW4gaW1wbGVtZW50YXRpb24gb2Ygd2FzQ3JlYXRlZEZyb21NYXJrdXAKKyAgICAgICAgYWRkZWQg
dG8gVjhMYXp5RXZlbnRMaXN0ZW5lci5oIHRoYXQgbWF0Y2hlcyB0aGUgb25lIGluCisgICAgICAg
IFdlYktpdC9XZWJDb3JlL2JpbmRpbmdzL2pzL0pTTGF6eUV2ZW50TGlzdGVuZXIuaC4KKyAgICAg
ICAgCisgICAgICAgIFRoaXMgcGF0Y2ggYWRkcyBzdWNoIGEgbWF0Y2hpbmcgaW1wbGVtZW50YXRp
b24gb2Ygd2FzQ3JlYXRlZEZyb21NYXJrdXAKKyAgICAgICAgdG8gVjhMYXp5RXZlbnRMaXN0ZW5l
ci5oLgorICAgICAgICAKKyAgICAgICAgUGF0Y2ggd2FzIHRlc3RlZCBhbm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9tTWFya3VwKCkgY29uc3QgeyByZXR1cm4g
dHJ1ZTsgfQorCiAgICAgICAgIFN0cmluZyBtX2Z1bmN0aW9uTmFtZTsKICAgICAgICAgYm9vbCBt
X2lzU1ZHRXZlbnQ7CiAgICAgICAgIFN0cmluZyBtX2NvZGU7Cg==
</data>
<flag name="review"
          id="32204"
          type_id="1"
          status="-"
          setter="japhet"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49604</attachid>
            <date>2010-02-26 11:32:12 -0800</date>
            <delta_ts>2010-02-26 17:18:00 -0800</delta_ts>
            <desc>patch for bug 35325</desc>
            <filename>bug_35325.patch</filename>
            <type>text/plain</type>
            <size>1705</size>
            <attacher name="Robert Kroeger">rjkroege</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NzU2ZDMxNi4uNTU2MDYzZCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwyMCBAQAorMjAxMC0wMi0yMyAgUm9iZXJ0IEtyb2Vn
ZXIgIDxyamtyb2VnZUBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTmF0ZSBD
aGFwaW4KKworICAgICAgICBUbyBmaXJlIGVhY2ggZXZlbnQgaGFuZGxlciByZWdpc3RlcmVkIG9u
IGFuIFNWRyBub2RlIG9uY2UgcGVyCisgICAgICAgIGV2ZW50LCBDaHJvbWl1bSBuZWVkcyBhbiBp
bXBsZW1lbnRhdGlvbiBvZiB3YXNDcmVhdGVkRnJvbU1hcmt1cAorICAgICAgICBhZGRlZCB0byBW
OExhenlFdmVudExpc3RlbmVyLmggdGhhdCBtYXRjaGVzIHRoZSBvbmUgaW4KKyAgICAgICAgV2Vi
S2l0L1dlYkNv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