<?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>38651</bug_id>
          
          <creation_ts>2010-05-06 09:45:20 -0700</creation_ts>
          <short_desc>WebFrame::paintDocumentRectToContext paints content at the wrong location</short_desc>
          <delta_ts>2010-05-06 10:39: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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</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>1</everconfirmed>
          <reporter name="Steve Falkenburg">sfalken</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>221744</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Falkenburg">sfalken</who>
    <bug_when>2010-05-06 09:45:20 -0700</bug_when>
    <thetext>WebFrame::paintDocumentRectToContext paints content at the wrong location</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221756</commentid>
    <comment_count>1</comment_count>
      <attachid>55252</attachid>
    <who name="Steve Falkenburg">sfalken</who>
    <bug_when>2010-05-06 09:53:09 -0700</bug_when>
    <thetext>Created attachment 55252
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221768</commentid>
    <comment_count>2</comment_count>
      <attachid>55252</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-05-06 10:04:24 -0700</bug_when>
    <thetext>Comment on attachment 55252
Patch

&gt; @@ -348,11 +348,8 @@ HRESULT STDMETHODCALLTYPE WebFrame::pain
&gt;      gc.save();
&gt;      LONG width = rect.right - rect.left;
&gt;      LONG height = rect.bottom - rect.top;
&gt; -    FloatRect dirtyRect;
&gt; -    dirtyRect.setWidth(width);
&gt; -    dirtyRect.setHeight(height);
&gt; +    FloatRect dirtyRect(rect.left, rect.top, width, height);

You could get rid of the width and height variables by doing:

FloatRect dirtyRect(IntRect(rect));

Too bad we don&apos;t have a way to test this.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221797</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Falkenburg">sfalken</who>
    <bug_when>2010-05-06 10:39:38 -0700</bug_when>
    <thetext>Committed r58895: &lt;http://trac.webkit.org/changeset/58895&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55252</attachid>
            <date>2010-05-06 09:53:09 -0700</date>
            <delta_ts>2010-05-06 10:04:24 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-38651-20100506095238.patch</filename>
            <type>text/plain</type>
            <size>1225</size>
            <attacher name="Steve Falkenburg">sfalken</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC93aW4vQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdC93aW4vQ2hh
bmdlTG9nCShyZXZpc2lvbiA1ODg4OSkKKysrIFdlYktpdC93aW4vQ2hhbmdlTG9nCSh3b3JraW5n
IGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMTAtMDUtMDYgIFN0ZXZlIEZhbGtlbmJ1cmcgIDxz
ZmFsa2VuQGFwcGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBO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BoZWlnaHQpOwogICAgIGdjLmNsaXAoZGlydHlSZWN0KTsKLSAgICBnYy50cmFuc2xh
dGUoLXJlY3QubGVmdCwgLXJlY3QudG9wKTsKICAgICB2aWV3LT5wYWludENvbnRlbnRzKCZnYywg
cmVjdCk7CiAgICAgZ2MucmVzdG9yZSgpOwogCg==
</data>
<flag name="review"
          id="39404"
          type_id="1"
          status="+"
          setter="aroben"
    />
          </attachment>
      

    </bug>

</bugzilla>