<?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>23766</bug_id>
          
          <creation_ts>2009-02-05 12:42:16 -0800</creation_ts>
          <short_desc>CanvasRenderingContext2D::setShadow needs else for other platforms</short_desc>
          <delta_ts>2009-02-05 15:41:11 -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>Windows XP</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>0</everconfirmed>
          <reporter name="Scott Violet">sky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108480</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Violet">sky</who>
    <bug_when>2009-02-05 12:42:16 -0800</bug_when>
    <thetext>The CMYK variant of CanvasRenderingContext2D::setShadow only updates the GraphicsContext if the platform is GC. There should be an else case for other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108481</commentid>
    <comment_count>1</comment_count>
      <attachid>27356</attachid>
    <who name="Scott Violet">sky</who>
    <bug_when>2009-02-05 12:47:51 -0800</bug_when>
    <thetext>Created attachment 27356
v1 of patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108484</commentid>
    <comment_count>2</comment_count>
      <attachid>27356</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-02-05 12:51:40 -0800</bug_when>
    <thetext>Comment on attachment 27356
v1 of patch

I don&apos;t like this trend of keeping CG as a special case when making all the other platforms share code. Can we find a way to make the code the same for all the platforms without hurting the rendering quality in CG?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108496</commentid>
    <comment_count>3</comment_count>
      <attachid>27356</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-05 13:22:20 -0800</bug_when>
    <thetext>Comment on attachment 27356
v1 of patch

Yeah, this is an OK solution for platforms w/o CYMK support, but it would be bad if used on platforms which did. I feel like this may need a FIXME to note that this should use a smarter color class some day.  (We should be able to pass a CYMK color along to graphics context directly w/o having to convert it to RGB here.)  The patch looks fine though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108497</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Violet">sky</who>
    <bug_when>2009-02-05 13:22:50 -0800</bug_when>
    <thetext>I&apos;m not a WebKit expert by any means, so take this with a grain of salt. Could we do the following:

. Change Color to wrap either an RGBA or CMYKA type ala a union.
. Change rgb() such that if the type is cmyka we use makeRGBAFromCMYKA.
. For platforms that support CMYK they could test the type, then convert as necessary.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108498</commentid>
    <comment_count>5</comment_count>
      <attachid>27356</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-05 13:22:57 -0800</bug_when>
    <thetext>Comment on attachment 27356
v1 of patch

Actually, never mind about the FIXME.  When we fix this, we&apos;ll just remove the CG code, and everyone will use the path you just added... we&apos;ll just make that path not be lossy like it is today. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108539</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2009-02-05 15:41:11 -0800</bug_when>
    <thetext>Landed as http://trac.webkit.org/changeset/40693.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>27356</attachid>
            <date>2009-02-05 12:47:51 -0800</date>
            <delta_ts>2009-02-05 13:22:20 -0800</delta_ts>
            <desc>v1 of patch</desc>
            <filename>23766.patch</filename>
            <type>text/plain</type>
            <size>1721</size>
            <attacher name="Scott Violet">sky</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0MDY3NSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTggQEAKKzIwMDktMDItMDUgIFNjb3R0IFZpb2xldCAgPHNreUBnb29nbGUuY29t
PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEJ1ZyAy
Mzc2NjogQ2FudmFzUmVuZGVyaW5nQ29udGV4dDJEOjpzZXRTaGFkb3cgbmVlZHMgZWxzZSBmb3Ig
b3RoZXIgcGxhdGZvcm1zCisgICAgICAgIDxodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9MjM3NjY+CisKKyAgICAgICAgSW1wbGVtZW50cyB0aGUgQ01ZSyB2YXJpYW50IG9m
IENhbnZhc1JlbmRlcmluZ0NvbnRleHQyRDo6c2V0U2hhZG93IGZvcgorICAgICAgICBvdGhlciBw
bGF0Zm9ybXMgdXNpbmcgdGhlIENNWUsgY29sb3IgY29uc3RydWN0b3IuCisKKyAgICAgICAgVGhp
cyBpcyBjb3ZlcmVkIGJ5IGV4aXN0aW5nIGxheW91dCB0ZXN0cy4KKworICAgICAgICAqIGh0bWwv
Q2FudmFzUmVuZGVyaW5nQ29udGV4dDJELmNwcDoKKyAgICAgICAgKFdlY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BDR0NvbnRleHRTZXRTaGFkb3dXaXRoQ29sb3IoZGMtPnBsYXRmb3JtQ29udGV4dCgpLCBh
ZGp1c3RlZFNoYWRvd1NpemUod2lkdGgsIC1oZWlnaHQpLCBibHVyLCBzaGFkb3dDb2xvcik7CiAg
ICAgQ0dDb2xvclJlbGVhc2Uoc2hhZG93Q29sb3IpOworI2Vsc2UKKyAgICBkYy0+c2V0U2hhZG93
KEludFNpemUod2lkdGgsIC1oZWlnaHQpLCBibHVyLCBDb2xvcihjLCBtLCB5LCBrLCBhKSk7CiAj
ZW5kaWYKIH0KIAo=
</data>
<flag name="review"
          id="13206"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>