<?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>49866</bug_id>
          
          <creation_ts>2010-11-20 09:33:28 -0800</creation_ts>
          <short_desc>Assert hit in WebCore::invalidateResourcesOfChildren in SVGRenderSupport.cpp</short_desc>
          <delta_ts>2010-11-20 09:53:35 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>47682</dup_id>
          
          <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="Rob Buis">rwlbuis</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>krit</cc>
    
    <cc>mdelaney7</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>311940</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2010-11-20 09:33:28 -0800</bug_when>
    <thetext>The following testcase triggers this assert:

&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;rect id=&quot;rect&quot; x=&quot;0&quot; y=&quot;100&quot; width=&quot;50&quot; height=&quot;50&quot; fill=&quot;white&quot; mask=&quot;url(#mask4)&quot;/&gt; 
&lt;defs&gt;
     &lt;mask id=&quot;mask4&quot;&gt;
    &lt;/mask&gt;
&lt;/defs&gt;
&lt;/svg&gt;

Though this unusual SVG, I am pretty sure it is valid.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311945</commentid>
    <comment_count>1</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2010-11-20 09:39:16 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 47682 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311950</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-11-20 09:42:57 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; The following testcase triggers this assert:
&gt; 
&gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&gt; &lt;rect id=&quot;rect&quot; x=&quot;0&quot; y=&quot;100&quot; width=&quot;50&quot; height=&quot;50&quot; fill=&quot;white&quot; mask=&quot;url(#mask4)&quot;/&gt; 
&gt; &lt;defs&gt;
&gt;      &lt;mask id=&quot;mask4&quot;&gt;
&gt;     &lt;/mask&gt;
&gt; &lt;/defs&gt;
&gt; &lt;/svg&gt;
&gt; 
&gt; Though this unusual SVG, I am pretty sure it is valid.
&gt; Cheers,
&gt; 
&gt; Rob.

If I reference the rect after the &lt;defs&gt; section by a &lt;use&gt; element, the test works, but if it is before this section, it asserts as well. So it might be a problem that the parsing of the document did not finished and the resources are unknown. Note, this only happens for mask and filter, but not for clipper, gradient or pattern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311951</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-11-20 09:46:04 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)
&gt; &gt; The following testcase triggers this assert:
&gt; &gt; 
&gt; &gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&gt; &gt; &lt;rect id=&quot;rect&quot; x=&quot;0&quot; y=&quot;100&quot; width=&quot;50&quot; height=&quot;50&quot; fill=&quot;white&quot; mask=&quot;url(#mask4)&quot;/&gt; 
&gt; &gt; &lt;defs&gt;
&gt; &gt;      &lt;mask id=&quot;mask4&quot;&gt;
&gt; &gt;     &lt;/mask&gt;
&gt; &gt; &lt;/defs&gt;
&gt; &gt; &lt;/svg&gt;
&gt; &gt; 
&gt; &gt; Though this unusual SVG, I am pretty sure it is valid.
&gt; &gt; Cheers,
&gt; &gt; 
&gt; &gt; Rob.
&gt; 
&gt; If I reference the rect after the &lt;defs&gt; section by a &lt;use&gt; element, the test works, but if it is before this section, it asserts as well. So it might be a problem that the parsing of the document did not finished and the resources are unknown. Note, this only happens for mask and filter, but not for clipper, gradient or pattern.

&lt;use&gt; elements are way trickier to understand. The attach time is different, the &lt;use&gt; rendering subtree is built delayed, so the layout flow is completly different than using no &lt;use&gt; element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311952</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-11-20 09:48:23 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (In reply to comment #0)
&gt; &gt; &gt; The following testcase triggers this assert:
&gt; &gt; &gt; 
&gt; &gt; &gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&gt; &gt; &gt; &lt;rect id=&quot;rect&quot; x=&quot;0&quot; y=&quot;100&quot; width=&quot;50&quot; height=&quot;50&quot; fill=&quot;white&quot; mask=&quot;url(#mask4)&quot;/&gt; 
&gt; &gt; &gt; &lt;defs&gt;
&gt; &gt; &gt;      &lt;mask id=&quot;mask4&quot;&gt;
&gt; &gt; &gt;     &lt;/mask&gt;
&gt; &gt; &gt; &lt;/defs&gt;
&gt; &gt; &gt; &lt;/svg&gt;
&gt; &gt; &gt; 
&gt; &gt; &gt; Though this unusual SVG, I am pretty sure it is valid.
&gt; &gt; &gt; Cheers,
&gt; &gt; &gt; 
&gt; &gt; &gt; Rob.
&gt; &gt; 
&gt; &gt; If I reference the rect after the &lt;defs&gt; section by a &lt;use&gt; element, the test works, but if it is before this section, it asserts as well. So it might be a problem that the parsing of the document did not finished and the resources are unknown. Note, this only happens for mask and filter, but not for clipper, gradient or pattern.
&gt; 
&gt; &lt;use&gt; elements are way trickier to understand. The attach time is different, the &lt;use&gt; rendering subtree is built delayed, so the layout flow is completly different than using no &lt;use&gt; element.

Nevertheless, if you move the rect after the resource, it works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>311953</commentid>
    <comment_count>5</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-11-20 09:53:35 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; (In reply to comment #0)
&gt; &gt; &gt; &gt; The following testcase triggers this assert:
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&gt; &gt; &gt; &gt; &lt;rect id=&quot;rect&quot; x=&quot;0&quot; y=&quot;100&quot; width=&quot;50&quot; height=&quot;50&quot; fill=&quot;white&quot; mask=&quot;url(#mask4)&quot;/&gt; 
&gt; &gt; &gt; &gt; &lt;defs&gt;
&gt; &gt; &gt; &gt;      &lt;mask id=&quot;mask4&quot;&gt;
&gt; &gt; &gt; &gt;     &lt;/mask&gt;
&gt; &gt; &gt; &gt; &lt;/defs&gt;
&gt; &gt; &gt; &gt; &lt;/svg&gt;
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Though this unusual SVG, I am pretty sure it is valid.
&gt; &gt; &gt; &gt; Cheers,
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Rob.
&gt; &gt; &gt; 
&gt; &gt; &gt; If I reference the rect after the &lt;defs&gt; section by a &lt;use&gt; element, the test works, but if it is before this section, it asserts as well. So it might be a problem that the parsing of the document did not finished and the resources are unknown. Note, this only happens for mask and filter, but not for clipper, gradient or pattern.
&gt; &gt; 
&gt; &gt; &lt;use&gt; elements are way trickier to understand. The attach time is different, the &lt;use&gt; rendering subtree is built delayed, so the layout flow is completly different than using no &lt;use&gt; element.
&gt; 
&gt; Nevertheless, if you move the rect after the resource, it works.
Sure, the order matters. I suspect we have a problem with the calls to RenderSVGResource:* in RenderSVGPath and other renderers.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>