<?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>121050</bug_id>
          
          <creation_ts>2013-09-09 14:45:04 -0700</creation_ts>
          <short_desc>Assertion can fail when removing display: none SVG elements</short_desc>
          <delta_ts>2015-04-22 14:43:28 -0700</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>140602</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vicki Pfau">jeffrey+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>926914</commentid>
    <comment_count>0</comment_count>
      <attachid>211088</attachid>
    <who name="Vicki Pfau">jeffrey+webkit</who>
    <bug_when>2013-09-09 14:45:04 -0700</bug_when>
    <thetext>Created attachment 211088
Repro

When there are two SVG elements in a display: none container, and the second SVG element refers to the first SVG element with a use element, an assertion may be thrown if children of the original SVG element are removed from the DOM. A simple repro is attached.

The failing assertion is (*it)-&gt;shadowTreeElement()-&gt;correspondingElement() in SVGElementInstance::invalidateAllInstancesOfElement(WebCore::SVGElement *).

&lt;rdar://problem/14887645&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1087596</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-04-22 14:43:28 -0700</bug_when>
    <thetext>The SVGElementInstance was removed completely from the source tree: https://bugs.webkit.org/show_bug.cgi?id=140602. And I confirmed that the repro test case opens in WebKit with no problem.

*** This bug has been marked as a duplicate of bug 140602 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>211088</attachid>
            <date>2013-09-09 14:45:04 -0700</date>
            <delta_ts>2013-09-09 14:45:04 -0700</delta_ts>
            <desc>Repro</desc>
            <filename>svg-remove-display-none.html</filename>
            <type>text/html</type>
            <size>362</size>
            <attacher name="Vicki Pfau">jeffrey+webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+PGh0bWw+Cjxib2R5IHN0eWxlPSJkaXNwbGF5OiBub25lIj4KCTxzdmcg
dmVyc2lvbj0iMS4xIiBpZD0iczEiPgoJCTxyZWN0IGlkPSJyMSIgLz4KCQk8cmVjdCBpZD0icjIi
IC8+Cgk8L3N2Zz4KCgk8c3ZnIHZlcnNpb249IjEuMSI+CgkJPHVzZSB4bGluazpocmVmPSIjczEi
IC8+Cgk8L3N2Zz4KCTxzY3JpcHQ+CgkJcjEgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgncjEn
KTsKCQlyMS5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKHIxKTsKCQlyMiA9IGRvY3VtZW50LmdldEVs
ZW1lbnRCeUlkKCdyMicpOwoJCXIyLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQocjIpOwoJPC9zY3Jp
cHQ+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>