<?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>51300</bug_id>
          
          <creation_ts>2010-12-18 15:28:44 -0800</creation_ts>
          <short_desc>[Qt] [WK2] QWKPagePrivate::paint() does not need to save the graphics context</short_desc>
          <delta_ts>2010-12-19 13:35:13 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P4</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Poulain">benjamin</reporter>
          <assigned_to name="Benjamin Poulain">benjamin</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>324160</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-18 15:28:44 -0800</bug_when>
    <thetext>QWKPagePrivate::paint() currently saves and restore the context at each call.

This is uncessary, the DrawingAreaProxy already does that:

-TiledDrawingAreaProxy uses gc.save() before rendering anything.
-ChunkedUpdateDrawingAreaProxy calls platformPaint. For Qt, ChunkedUpdateDrawingAreaProxy::platformPaint() is just calling drawimage, which has no side effect.

In any case, there is no requirement for a graphics item to return the painter in the same state as it was given.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324161</commentid>
    <comment_count>1</comment_count>
      <attachid>76948</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-18 15:30:48 -0800</bug_when>
    <thetext>Created attachment 76948
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324167</commentid>
    <comment_count>2</comment_count>
      <attachid>76948</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-18 16:38:08 -0800</bug_when>
    <thetext>Comment on attachment 76948
Patch

Thanks Kenneth for the review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324168</commentid>
    <comment_count>3</comment_count>
      <attachid>76948</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-18 16:40:58 -0800</bug_when>
    <thetext>Comment on attachment 76948
Patch

Rejecting attachment 76948 from commit-queue.

Failed to run &quot;[&apos;./Tools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;--bot-id=cr-jail-3&apos;, &apos;apply-attachment&apos;, &apos;--non-interactive&apos;, 76948]&quot; exit_code: 2
Last 500 characters of output:
ts/svn-apply&apos;, u&apos;--reviewer&apos;, u&apos;Kenneth Rohde Christiansen&apos;, u&apos;--force&apos;]&quot; exit_code: 1
Parsed 2 diffs from patch file(s).
patching file WebKit2/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file WebKit2/UIProcess/API/qt/qwkpage.cpp
Hunk #1 FAILED at 160.
1 out of 1 hunk FAILED -- saving rejects to file WebKit2/UIProcess/API/qt/qwkpage.cpp.rej

Failed to run &quot;[u&apos;/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply&apos;, u&apos;--reviewer&apos;, u&apos;Kenneth Rohde Christiansen&apos;, u&apos;--force&apos;]&quot; exit_code: 1

Full output: http://queues.webkit.org/results/7231043</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324211</commentid>
    <comment_count>4</comment_count>
      <attachid>76948</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-19 11:48:27 -0800</bug_when>
    <thetext>Comment on attachment 76948
Patch

cq+, that should merge now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324223</commentid>
    <comment_count>5</comment_count>
      <attachid>76948</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-19 13:35:06 -0800</bug_when>
    <thetext>Comment on attachment 76948
Patch

Clearing flags on attachment: 76948

Committed r74327: &lt;http://trac.webkit.org/changeset/74327&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324224</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-19 13:35:13 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76948</attachid>
            <date>2010-12-18 15:30:48 -0800</date>
            <delta_ts>2010-12-19 13:35:06 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>51300.diff</filename>
            <type>text/plain</type>
            <size>1285</size>
            <attacher name="Benjamin Poulain">benjamin</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdDIvQ2hhbmdlTG9nIGIvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXgg
NWE4NDBiYS4uNmQxN2NlOCAxMDA2NDQKLS0tIGEvV2ViS2l0Mi9DaGFuZ2VMb2cKKysrIGIvV2Vi
S2l0Mi9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNSBAQAorMjAxMC0xMi0xOCAgQmVuamFtaW4gUG91
bGFpbiAgPGJlbmphbWluLnBvdWxhaW5Abm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFtRdF0gW1dLMl0gUVdLUGFnZVByaXZhdGU6OnBh
aW50KCkgZG9lcyBub3QgbmVlZCB0byBzYXZlIHRoZSBncmFwaGljcyBj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