<?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>7627</bug_id>
          
          <creation_ts>2006-03-06 11:42:30 -0800</creation_ts>
          <short_desc>SVG from the W3C SVG 1.1 test suite (cubic01.svg) renders as all black</short_desc>
          <delta_ts>2006-04-05 21:33:38 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/SVG11/images/paths/cubic01.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Buis">rwlbuis</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chris</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35313</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-03-06 11:42:30 -0800</bug_when>
    <thetext>The svg indicated by the URL renders as one black rect, while
it should show path(s).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35325</commentid>
    <comment_count>1</comment_count>
      <attachid>6902</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-03-06 13:52:11 -0800</bug_when>
    <thetext>Created attachment 6902
Possible fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35417</commentid>
    <comment_count>2</comment_count>
      <attachid>6917</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-03-07 05:21:21 -0800</bug_when>
    <thetext>Created attachment 6917
New patch

Patch tested and okayed by mitzpettel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35425</commentid>
    <comment_count>3</comment_count>
      <attachid>6917</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-03-07 08:59:33 -0800</bug_when>
    <thetext>Comment on attachment 6917
New patch

Needs change log. Needs layout test, or perhaps an existing test already checks this. If you omit the boolean, then true is the default, so I suggest omitting it instead of passing true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35452</commentid>
    <comment_count>4</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-03-07 13:47:59 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 6917 [edit])
&gt; Needs change log. Needs layout test, or perhaps an existing test already checks
&gt; this. If you omit the boolean, then true is the default, so I suggest omitting
&gt; it instead of passing true.
&gt; 

Hi Darin,

I can do most of the above, however I could not explain so far
why the change works. I&apos;d really like to be able to do this before
seeing the change in, so I&apos;ll keep looking for the reason, but
if anyone else can explain why it works, please let me know..
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35533</commentid>
    <comment_count>5</comment_count>
      <attachid>6917</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-03-08 08:59:20 -0800</bug_when>
    <thetext>Comment on attachment 6917
New patch

Seems relatively straightforward to investigate further. One idea is to figure out what is parsed differently in the CSS in the different modes. The DOM inspector might even help. Another idea is to reduce this test page further.

Marking this patch review- because we don&apos;t want to land it until we understand what&apos;s wrong, and because it needs change log, layout test, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38496</commentid>
    <comment_count>6</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-04-04 04:32:17 -0700</bug_when>
    <thetext>*** Bug 8041 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38534</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-04-04 13:19:30 -0700</bug_when>
    <thetext>This is the correct fix.  SVG is always parsed in strict mode because it&apos;s XML, so passing &quot;true&quot; instead of checking the document&apos;s mode is the right thing to do.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38535</commentid>
    <comment_count>8</comment_count>
      <attachid>6917</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-04-04 13:19:50 -0700</bug_when>
    <thetext>Comment on attachment 6917
New patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38536</commentid>
    <comment_count>9</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-04-04 13:27:05 -0700</bug_when>
    <thetext>After quite some time looking in the wrong places, I found
out in non-strict mode in CSSGrammar.y all class values are
lower cased, causing mismatching when we really are looking for
class values with upper case in them. So class=foo is not a problem,
but class=Foo is, as shown by several testcases.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38543</commentid>
    <comment_count>10</comment_count>
      <attachid>7509</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2006-04-04 13:58:03 -0700</bug_when>
    <thetext>Created attachment 7509
Even more complete patch

This time it should have everything, testcase, changelogs etc...
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38546</commentid>
    <comment_count>11</comment_count>
      <attachid>7509</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-04-04 14:45:25 -0700</bug_when>
    <thetext>Comment on attachment 7509
Even more complete patch

Looks great.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>6902</attachid>
            <date>2006-03-06 13:52:11 -0800</date>
            <delta_ts>2006-03-07 05:21:21 -0800</delta_ts>
            <desc>Possible fix</desc>
            <filename>7627.diff</filename>
            <type>text/plain</type>
            <size>639</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUva3N2ZzIvc3ZnL1NWR1N0eWxlRWxlbWVudEltcGwuY3BwCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0KLS0tIFdlYkNvcmUva3N2ZzIvc3ZnL1NWR1N0eWxlRWxlbWVudEltcGwuY3BwCShyZXZpc2lv
biAxMzE2NikKKysrIFdlYkNvcmUva3N2ZzIvc3ZnL1NWR1N0eWxlRWxlbWVudEltcGwuY3BwCSh3
b3JraW5nIGNvcHkpCkBAIC0xMDcsNyArMTA3LDcgQEAKICAgICAgICAgbV9sb2FkaW5nID0gdHJ1
ZTsKICAKICAgICAgICAgbV9zaGVldCA9IG5ldyBDU1NTdHlsZVNoZWV0SW1wbCh0aGlzKTsKLSAg
ICAgICAgbV9zaGVldC0+cGFyc2VTdHJpbmcodGV4dENvbnRlbnQoKSwgZmFsc2UpOy8vIWdldERv
Y3VtZW50KCktPmluQ29tcGF0TW9kZSgpKTsKKyAgICAgICAgbV9zaGVldC0+cGFyc2VTdHJpbmco
dGV4dENvbnRlbnQoKSwgdHJ1ZSk7Ly8hZ2V0RG9jdW1lbnQoKS0+aW5Db21wYXRNb2RlKCkpOwog
CiAgICAgICAgIE1lZGlhTGlzdEltcGwgKm1lZGlhTGlzdCA9IG5ldyBNZWRpYUxpc3RJbXBsKG1f
c2hlZXQuZ2V0KCksIG1lZGlhRG9tU3RyaW5nKTsKICAgICAgICAgbV9zaGVldC0+c2V0TWVkaWEo
bWVkaWFMaXN0KTsK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>6917</attachid>
            <date>2006-03-07 05:21:21 -0800</date>
            <delta_ts>2006-04-04 13:58:03 -0700</delta_ts>
            <desc>New patch</desc>
            <filename>7627.diff</filename>
            <type>text/plain</type>
            <size>646</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUva3N2ZzIvc3ZnL1NWR1N0eWxlRWxlbWVudEltcGwuY3BwCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0KLS0tIFdlYkNvcmUva3N2ZzIvc3ZnL1NWR1N0eWxlRWxlbWVudEltcGwuY3BwCShyZXZpc2lv
biAxMzE4NSkKKysrIFdlYkNvcmUva3N2ZzIvc3ZnL1NWR1N0eWxlRWxlbWVudEltcGwuY3BwCSh3
b3JraW5nIGNvcHkpCkBAIC0xMDgsNyArMTA4LDcgQEAgdm9pZCBTVkdTdHlsZUVsZW1lbnRJbXBs
OjpjaGlsZHJlbkNoYW5nZQogICAgICAgICBtX2xvYWRpbmcgPSB0cnVlOwogIAogICAgICAgICBt
X3NoZWV0ID0gbmV3IENTU1N0eWxlU2hlZXRJbXBsKHRoaXMpOwotICAgICAgICBtX3NoZWV0LT5w
YXJzZVN0cmluZyh0ZXh0Q29udGVudCgpLCBmYWxzZSk7Ly8hZ2V0RG9jdW1lbnQoKS0+aW5Db21w
YXRNb2RlKCkpOworICAgICAgICBtX3NoZWV0LT5wYXJzZVN0cmluZyh0ZXh0Q29udGVudCgpLCB0
cnVlKTsKIAogICAgICAgICBNZWRpYUxpc3RJbXBsICptZWRpYUxpc3QgPSBuZXcgTWVkaWFMaXN0
SW1wbChtX3NoZWV0LmdldCgpLCBtZWRpYURvbVN0cmluZyk7CiAgICAgICAgIG1fc2hlZXQtPnNl
dE1lZGlhKG1lZGlhTGlzdCk7Cg==
</data>
<flag name="review"
          id="1785"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7509</attachid>
            <date>2006-04-04 13:58:03 -0700</date>
            <delta_ts>2006-04-04 14:45:25 -0700</delta_ts>
            <desc>Even more complete patch</desc>
            <filename>7627.diff</filename>
            <type>text/plain</type>
            <size>2379</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL3N2Zy9jdXN0b20vY2xhc3Mtc2VsZWN0b3Iuc3ZnCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0KLS0tIExheW91dFRlc3RzL3N2Zy9jdXN0b20vY2xhc3Mtc2VsZWN0b3Iuc3ZnCShyZXZpc2lv
biAwKQorKysgTGF5b3V0VGVzdHMvc3ZnL2N1c3RvbS9jbGFzcy1zZWxlY3Rvci5zdmcJKHJldmlz
aW9uIDApCkBAIC0wLDAgKzEsOSBAQAorPD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJu
byI/PgorPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIgorICAi
aHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KKzxzdmcg
eG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNDAwIiBoZWlnaHQ9IjQw
MCI+Cis8c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwhW0NEQVRBWworLkZvbyB7IGZpbGw6IGdyZWVu
OyBzdHJva2Utd2lkdGg6MiB9CitdXT48L3N0eWxlPgorPHJlY3QgY2xhc3M9IkZvbyIgeD0iMTAw
IiB5PSIxMDAiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIi8+Cis8L3N2Zz4KSW5kZXg6IExheW91
dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9DaGFuZ2VMb2cJK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bV9zaGVldC0+c2V0TWVkaWEobWVkaWFMaXN0KTsK
</data>
<flag name="review"
          id="2048"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>