<?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>67052</bug_id>
          
          <creation_ts>2011-08-26 12:26:14 -0700</creation_ts>
          <short_desc>Remove offset hack from GraphicsContextCG setShadow code</short_desc>
          <delta_ts>2011-09-15 14:22:49 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>68041</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="Matthew Delaney">mdelaney7</reporter>
          <assigned_to name="Matthew Delaney">mdelaney7</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>457703</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2011-08-26 12:26:14 -0700</bug_when>
    <thetext>A hack was introduced in http://trac.webkit.org/changeset/28714 for an issue with offsets in an old version of cg that&apos;s long since been fixed. Since this hack is no longer necessary it&apos;s best removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457713</commentid>
    <comment_count>1</comment_count>
      <attachid>105393</attachid>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2011-08-26 12:53:27 -0700</bug_when>
    <thetext>Created attachment 105393
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457722</commentid>
    <comment_count>2</comment_count>
      <attachid>105393</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-08-26 13:16:26 -0700</bug_when>
    <thetext>Comment on attachment 105393
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=105393&amp;action=review

&gt; Source/WebCore/ChangeLog:3
&gt; +        Remove offset hack from graphicscontextcg setShadow code

graphicscontextcg -&gt; GraphicsContextCG

&gt; Source/WebCore/ChangeLog:12
&gt; +        for an issue with offsets in an old version of cg that&apos;s long since been fixed.

cg -&gt; CoreGraphics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457813</commentid>
    <comment_count>3</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2011-08-26 15:26:43 -0700</bug_when>
    <thetext>Committed r93919: &lt;http://trac.webkit.org/changeset/93919&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457831</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2011-08-26 16:06:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/10033019&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458508</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-08-29 15:47:26 -0700</bug_when>
    <thetext>...but conditionality put back via bug 67107.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464894</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-09-09 10:47:12 -0700</bug_when>
    <thetext>This seems to have affected LayoutTests/fast/repaint/box-shadow-h.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464920</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2011-09-09 11:11:57 -0700</bug_when>
    <thetext>box-shadow-v.html as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464946</commentid>
    <comment_count>8</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2011-09-09 11:37:03 -0700</bug_when>
    <thetext>Unless I&apos;m misreading the tests, it appears that they&apos;re &quot;more&quot; correct now. The only difference is the non-blurred shadow above the last &quot;lorem ipsum&quot; - It now shows an offset of -5,-5 as requested, instead of having only the x and y offset component for the vertical and horizontal tests, respectively.

I haven&apos;t double checked to see if those tests (using box-shadow) hit the ShadowBlur code path or not. If they do, then this patch wouldn&apos;t have affected that, correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464956</commentid>
    <comment_count>9</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2011-09-09 11:53:27 -0700</bug_when>
    <thetext>Hmm, reverting my change for Lion does show those tests changing. So, again, unless I&apos;m misreading it then this change helps us on those tests and we should rebaseline them. I can do that if others agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466651</commentid>
    <comment_count>10</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-09-13 16:19:50 -0700</bug_when>
    <thetext>This is now broken in TOT in OS X Lion:

&lt;div style=&quot;width: 100px; height: 100px; -webkit-box-shadow: black 1px 1px; background: red;&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466654</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-09-13 16:22:40 -0700</bug_when>
    <thetext>Reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466662</commentid>
    <comment_count>12</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-09-13 16:28:15 -0700</bug_when>
    <thetext>Filed bug 68041.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>468083</commentid>
    <comment_count>13</comment_count>
    <who name="Matthew Delaney">mdelaney7</who>
    <bug_when>2011-09-15 14:22:49 -0700</bug_when>
    <thetext>This issue is resolved by https://bugs.webkit.org/show_bug.cgi?id=68041. Closing.

*** This bug has been marked as a duplicate of bug 68041 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105393</attachid>
            <date>2011-08-26 12:53:27 -0700</date>
            <delta_ts>2011-08-26 13:16:26 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-67052-20110826125326.patch</filename>
            <type>text/plain</type>
            <size>2025</size>
            <attacher name="Matthew Delaney">mdelaney7</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDkzOTAzKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTEtMDgtMjYgIE1hdHRoZXcg
RGVsYW5leSAgPG1kZWxhbmV5QGFwcGxlLmNvbT4KKworICAgICAgICBSZW1vdmUgb2Zmc2V0IGhh
Y2sgZnJvbSBncmFwaGljc2NvbnRleHRjZyBzZXRTaGFkb3cgY29kZQorICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjcwNTIKKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBObyBuZXcgdGVzdHMgLSBjdXJyZW50IHRl
c3RzIGNvdmVyIGl0LgorCisgICAgICAgICogcGxhdGZvcm0vZ3JhcGhpY3MvY2cvR3JhcGhpY3ND
b250ZXh0Q0cuY3BwOgorICAgICAgICBSZW1vd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ZWNpc2lvblRvQ0dGbG9hdCgxMDAwLjAp
KTsKIAotICAgIC8vIFdvcmsgYXJvdW5kIDxyZGFyOi8vcHJvYmxlbS81NTM5Mzg4PiBieSBlbnN1
cmluZyB0aGF0IHRoZSBvZmZzZXRzIHdpbGwgZ2V0IHRydW5jYXRlZAotICAgIC8vIHRvIHRoZSBk
ZXNpcmVkIGludGVnZXIuCi0gICAgc3RhdGljIGNvbnN0IENHRmxvYXQgZXh0cmFTaGFkb3dPZmZz
ZXQgPSBuYXJyb3dQcmVjaXNpb25Ub0NHRmxvYXQoMS4wIC8gMTI4KTsKLSAgICBpZiAoeE9mZnNl
dCA+IDApCi0gICAgICAgIHhPZmZzZXQgKz0gZXh0cmFTaGFkb3dPZmZzZXQ7Ci0gICAgZWxzZSBp
ZiAoeE9mZnNldCA8IDApCi0gICAgICAgIHhPZmZzZXQgLT0gZXh0cmFTaGFkb3dPZmZzZXQ7Ci0K
LSAgICBpZiAoeU9mZnNldCA+IDApCi0gICAgICAgIHlPZmZzZXQgKz0gZXh0cmFTaGFkb3dPZmZz
ZXQ7Ci0gICAgZWxzZSBpZiAoeU9mZnNldCA8IDApCi0gICAgICAgIHlPZmZzZXQgLT0gZXh0cmFT
aGFkb3dPZmZzZXQ7Ci0KICAgICAvLyBDaGVjayBmb3IgYW4gaW52YWxpZCBjb2xvciwgYXMgdGhp
cyBtZWFucyB0aGF0IHRoZSBjb2xvciB3YXMgbm90IHNldCBmb3IgdGhlIHNoYWRvdwogICAgIC8v
IGFuZCB3ZSBzaG91bGQgdGhlcmVmb3JlIGp1c3QgdXNlIHRoZSBkZWZhdWx0IHNoYWRvdyBjb2xv
ci4KICAgICBpZiAoIWNvbG9yLmlzVmFsaWQoKSkK
</data>
<flag name="review"
          id="101525"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>