<?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>54336</bug_id>
          
          <creation_ts>2011-02-12 01:16:01 -0800</creation_ts>
          <short_desc>PlatformContextSkia::applyAntiAliasedClipPaths does not work for paths which have evenOdd property</short_desc>
          <delta_ts>2011-02-16 16:50:51 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/Graphics/SVG/Test/20021112/htmlframe/full-masking-path-05-f.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Robin Cao">robin.webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>agl</cc>
    
    <cc>bsalomon</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jamesr</cc>
    
    <cc>reed</cc>
    
    <cc>robin.webkit</cc>
    
    <cc>senorblanco</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>350252</commentid>
    <comment_count>0</comment_count>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-02-12 01:16:01 -0800</bug_when>
    <thetext>PlatformContextSkia::applyAntiAliasedClipPaths does not work for paths which have evenOdd property.
This test (http://www.w3.org/Graphics/SVG/Test/20021112/htmlframe/full-masking-path-05-f.html) fails on Chrome.

I have a fix for this. Will upload soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351005</commentid>
    <comment_count>1</comment_count>
      <attachid>82393</attachid>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-02-14 17:26:05 -0800</bug_when>
    <thetext>Created attachment 82393
patch

We need to take fill type of paths into account in applyAntiAliasedClipPaths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351011</commentid>
    <comment_count>2</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-02-14 17:40:27 -0800</bug_when>
    <thetext>I think this fine - could one of you (Mike/Stephen/Brian) sanity check it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351015</commentid>
    <comment_count>3</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-02-14 17:43:09 -0800</bug_when>
    <thetext>This is marked as a failure on win/linux in chromium currently: http://code.google.com/p/chromium/issues/detail?id=25208</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351255</commentid>
    <comment_count>4</comment_count>
    <who name="Mike Reed">reed</who>
    <bug_when>2011-02-15 07:50:16 -0800</bug_when>
    <thetext>SkPath::toggleInverseFillType() is a helper that does exactly this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351268</commentid>
    <comment_count>5</comment_count>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-02-15 08:02:28 -0800</bug_when>
    <thetext>+agl, since I think he wrote this code.

This looks ok to me (although we should probably use the helper fn, as Mike suggests).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351523</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Langley">agl</who>
    <bug_when>2011-02-15 13:19:18 -0800</bug_when>
    <thetext>LGTM if updated with Mike&apos;s suggestion.

(Of course, I still hope that Skia gets immediate anti-aliased clipping at some point :)

Shouldn&apos;t this either include updated baselines or new layout tests? Or are they to follow in a different patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351540</commentid>
    <comment_count>7</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-02-15 13:52:46 -0800</bug_when>
    <thetext>svg/W3C-SVG-1.1/masking-path-05-f.svg covers this test.

Robin, could you remove the line referencing this test from LayoutTests/platform/chromium/test_expectations.txt when you update this patch?  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351543</commentid>
    <comment_count>8</comment_count>
      <attachid>82393</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-02-15 13:53:13 -0800</bug_when>
    <thetext>Comment on attachment 82393
patch

Marking this one R- since it should use the helper function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351798</commentid>
    <comment_count>9</comment_count>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-02-15 18:13:20 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; Robin, could you remove the line referencing this test from LayoutTests/platform/chromium/test_expectations.txt when you update this patch?  Thanks!

I can do this. One question is that i only work on linux at the moment and do i have to update baselines for chromium-win?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351801</commentid>
    <comment_count>10</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-02-15 18:15:12 -0800</bug_when>
    <thetext>Oh, that is a bummer.  Just leave the test_expectations.txt line alone and we (meaning probably me) will take care of the baselines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351811</commentid>
    <comment_count>11</comment_count>
      <attachid>82570</attachid>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-02-15 18:50:18 -0800</bug_when>
    <thetext>Created attachment 82570
updated patch

Use the helper function to toggle fill type of paths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352201</commentid>
    <comment_count>12</comment_count>
    <who name="Adam Langley">agl</who>
    <bug_when>2011-02-16 11:08:52 -0800</bug_when>
    <thetext>LGTM. (Note I am not a WK reviewer. You need an r+ from a real reviewer also.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352226</commentid>
    <comment_count>13</comment_count>
      <attachid>82570</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-02-16 11:33:26 -0800</bug_when>
    <thetext>Comment on attachment 82570
updated patch

R=me. Thanks again!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352459</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-16 16:49:12 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 82570:

http/tests/misc/uncacheable-script-repeated.html bug 51009 (author: koivisto@iki.fi)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352461</commentid>
    <comment_count>15</comment_count>
      <attachid>82570</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-16 16:50:46 -0800</bug_when>
    <thetext>Comment on attachment 82570
updated patch

Clearing flags on attachment: 82570

Committed r78751: &lt;http://trac.webkit.org/changeset/78751&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352463</commentid>
    <comment_count>16</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-16 16:50:51 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82393</attachid>
            <date>2011-02-14 17:26:05 -0800</date>
            <delta_ts>2011-02-15 18:50:18 -0800</delta_ts>
            <desc>patch</desc>
            <filename>clip-path.patch</filename>
            <type>text/plain</type>
            <size>1620</size>
            <attacher name="Robin Cao">robin.webkit</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDc4NTIzKQorKysg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T09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9wbGF0Zm9ybS9ncmFwaGljcy9za2lhL1BsYXRmb3JtQ29udGV4dFNraWEuY3BwCShyZXZp
c2lvbiA3ODQ1NykKKysrIFNvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL3NraWEvUGxh
dGZvcm1Db250ZXh0U2tpYS5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTY4OCw3ICs2ODgsNyBAQCB2
b2lkIFBsYXRmb3JtQ29udGV4dFNraWE6OmFwcGx5QW50aUFsaWFzCiAgICAgcGFpbnQuc2V0U3R5
bGUoU2tQYWludDo6a0ZpbGxfU3R5bGUpOwogCiAgICAgZm9yIChzaXplX3QgaSA9IHBhdGhzLnNp
emUoKSAtIDE7IGkgPCBwYXRocy5zaXplKCk7IC0taSkgewotICAgICAgICBwYXRoc1tpXS5zZXRG
aWxsVHlwZShTa1BhdGg6OmtJbnZlcnNlV2luZGluZ19GaWxsVHlwZSk7CisgICAgICAgIHBhdGhz
W2ldLnNldEZpbGxUeXBlKHBhdGhzW2ldLmdldEZpbGxUeXBlKCkgPT0gU2tQYXRoOjprV2luZGlu
Z19GaWxsVHlwZSA/IFNrUGF0aDo6a0ludmVyc2VXaW5kaW5nX0ZpbGxUeXBlIDogU2tQYXRoOjpr
SW52ZXJzZUV2ZW5PZGRfRmlsbFR5cGUpOwogICAgICAgICBtX2NhbnZhcy0+ZHJhd1BhdGgocGF0
aHNbaV0sIHBhaW50KTsKICAgICB9CiAK
</data>
<flag name="review"
          id="74053"
          type_id="1"
          status="-"
          setter="jamesr"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82570</attachid>
            <date>2011-02-15 18:50:18 -0800</date>
            <delta_ts>2011-02-16 16:50:45 -0800</delta_ts>
            <desc>updated patch</desc>
            <filename>clip-path-v2.patch</filename>
            <type>text/plain</type>
            <size>1509</size>
            <attacher name="Robin Cao">robin.webkit</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDc4NTIzKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTEtMDItMTQgIFJvYmluIENh
byAgPHJvYmluLmNhb0B0b3JjaG1vYmlsZS5jb20uY24+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgUGxhdGZvcm1Db250ZXh0U2tpYTo6YXBwbHlBbnRp
QWxpYXNlZENsaXBQYXRocyBkb2VzIG5vdCB3b3JrIGZvciBwYXRocyB3aGljaCBoYXZlIGV2ZW5P
ZGQgcHJvcGVydHkKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dp
P2lkPTU0MzM2CisKKyAgICAgICAgV2UgbmVlZCB0byB0YWtlIGZpbGwgdHlwZSBvZiBwYXRocyBp
bnRvIGFjY291bnQgd2hlbiBkcmF3aW5nIHRoZW0uCisKKyAgICAgICAgTm8gbmV3IHRlc3RzLCBj
b3ZlcmVkIGJ5IHN2Zy9XM0MtU1ZHLTEuMS9tYXNraW5nLXBhdGgtMDUtZi5zdmcuCisKKyAgICAg
ICAgKiBwbGF0Zm9ybS9ncmFwaGljcy9za2lhL1BsYXRmb3JtQ29udGV4dFNraWEuY3BwOgorICAg
ICAgICAoV2ViQ29yZTo6UGxhdGZvcm1Db250ZXh0U2tpYTo6YXBwbHlBbnRpQWxpYXNlZENsaXBQ
YXRocyk6CisKIDIwMTEtMDItMTQgIEVucmljYSBDYXN1Y2NpICA8ZW5yaWNhQGFwcGxlLmNvbT4K
IAogICAgICAgICBDb3B5L3Bhc3RlIGZyb20gYSBXZWJLaXQgd2luZG93IHRvIGEgVGV4dEVkaXQg
d2luZG93IGxvc2VzIGZvbnRzLgpJbmRleDogU291cmNlL1dlYkNvcmUvcGxhdGZvcm0vZ3JhcGhp
Y3Mvc2tpYS9QbGF0Zm9ybUNvbnRleHRTa2lhLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9wbGF0Zm9ybS9ncmFwaGljcy9za2lhL1BsYXRmb3JtQ29udGV4dFNraWEuY3BwCShyZXZp
c2lvbiA3ODQ1NykKKysrIFNvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL3NraWEvUGxh
dGZvcm1Db250ZXh0U2tpYS5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTY4OCw3ICs2ODgsNyBAQCB2
b2lkIFBsYXRmb3JtQ29udGV4dFNraWE6OmFwcGx5QW50aUFsaWFzCiAgICAgcGFpbnQuc2V0U3R5
bGUoU2tQYWludDo6a0ZpbGxfU3R5bGUpOwogCiAgICAgZm9yIChzaXplX3QgaSA9IHBhdGhzLnNp
emUoKSAtIDE7IGkgPCBwYXRocy5zaXplKCk7IC0taSkgewotICAgICAgICBwYXRoc1tpXS5zZXRG
aWxsVHlwZShTa1BhdGg6OmtJbnZlcnNlV2luZGluZ19GaWxsVHlwZSk7CisgICAgICAgIHBhdGhz
W2ldLnRvZ2dsZUludmVyc2VGaWxsVHlwZSgpOwogICAgICAgICBtX2NhbnZhcy0+ZHJhd1BhdGgo
cGF0aHNbaV0sIHBhaW50KTsKICAgICB9CiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>