<?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>101911</bug_id>
          
          <creation_ts>2012-11-12 02:14:55 -0800</creation_ts>
          <short_desc>[Cairo] fillRectWithColor with Color::transparent doesn&apos;t perform anything</short_desc>
          <delta_ts>2012-11-26 10:57:50 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Linux</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>
          
          <blocked>103081</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Hurnjoo Lee">hurnjoo.lee</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>d-r</cc>
    
    <cc>kenneth</cc>
    
    <cc>tmpsantos</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>764165</commentid>
    <comment_count>0</comment_count>
    <who name="Hurnjoo Lee">hurnjoo.lee</who>
    <bug_when>2012-11-12 02:14:55 -0800</bug_when>
    <thetext>fillRectWithColor with Color::transparent doesn&apos;t perform anything
because fillRectWithColor does early-return if the alpha value of
color is zero. But we expect that fill the rect with transparent color                                                                                                                                                                
in case the cairo_operator is CAIRO_OPERATOR_SOURCE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>764166</commentid>
    <comment_count>1</comment_count>
      <attachid>173591</attachid>
    <who name="Hurnjoo Lee">hurnjoo.lee</who>
    <bug_when>2012-11-12 02:17:18 -0800</bug_when>
    <thetext>Created attachment 173591
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>764394</commentid>
    <comment_count>2</comment_count>
      <attachid>173591</attachid>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-11-12 07:24:16 -0800</bug_when>
    <thetext>Comment on attachment 173591
proposed patch

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

&gt; Source/WebCore/ChangeLog:13
&gt; +        Covered by existing tests.

Do you have an example? Which test is passing with this change, or in other words: What was broken before?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765311</commentid>
    <comment_count>3</comment_count>
    <who name="Hurnjoo Lee">hurnjoo.lee</who>
    <bug_when>2012-11-12 23:40:26 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 173591 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=173591&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:13
&gt; &gt; +        Covered by existing tests.
&gt; 
&gt; Do you have an example? Which test is passing with this change, or in other words: What was broken before?

I wrote it in meaning that do not affect to existing test. If there is any problem in this expression, I will revise it.
Actually, the problem is occurred in case using TextureMapper on WebKit2 EFL port.
In UpdateAtlas::beginPaintingOnAvailableBuffer, in case of using GraphicsContextCairo (EFL or GTK), doesn&apos;t fill the reused area with transparent color.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765522</commentid>
    <comment_count>4</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-11-13 06:05:05 -0800</bug_when>
    <thetext>(In reply to comment #3)

&gt; I wrote it in meaning that do not affect to existing test. If there is any problem in this expression, I will revise it.
&gt; Actually, the problem is occurred in case using TextureMapper on WebKit2 EFL port.
&gt; In UpdateAtlas::beginPaintingOnAvailableBuffer, in case of using GraphicsContextCairo (EFL or GTK), doesn&apos;t fill the reused area with transparent color.

Thanks, I understand. If there is such an actual problem - as you describe -please provide a layout test exactly reproducing this problem or provide convincing reasoning why it&apos;s not possible to create such a regression test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775597</commentid>
    <comment_count>5</comment_count>
      <attachid>173591</attachid>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2012-11-26 10:03:27 -0800</bug_when>
    <thetext>Comment on attachment 173591
proposed patch

This fixes 103081!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775599</commentid>
    <comment_count>6</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-11-26 10:05:21 -0800</bug_when>
    <thetext>Please consider creating a regression test for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775601</commentid>
    <comment_count>7</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2012-11-26 10:06:20 -0800</bug_when>
    <thetext>Btw I would love if someone could performance test fillRect (transparent) vs clearRect!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775656</commentid>
    <comment_count>8</comment_count>
      <attachid>173591</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-11-26 10:50:40 -0800</bug_when>
    <thetext>Comment on attachment 173591
proposed patch

Clearing flags on attachment: 173591

Committed r135737: &lt;http://trac.webkit.org/changeset/135737&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775658</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-11-26 10:50:44 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775672</commentid>
    <comment_count>10</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2012-11-26 10:57:50 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 173591 [details])
&gt; This fixes 103081!

Also https://bugs.webkit.org/show_bug.cgi?id=102989</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>173591</attachid>
            <date>2012-11-12 02:17:18 -0800</date>
            <delta_ts>2012-11-26 10:50:40 -0800</delta_ts>
            <desc>proposed patch</desc>
            <filename>101911.patch</filename>
            <type>text/plain</type>
            <size>1805</size>
            <attacher name="Hurnjoo Lee">hurnjoo.lee</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBkOWUyODM3Li5hOWZmYWUxIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMjEg
QEAKKzIwMTItMTEtMDggIEh1cm5qb28gTGVlICA8aHVybmpvby5sZWVAc2Ftc3VuZy5jb20+CisK
KyAgICAgICAgW0NhaXJvXSBmaWxsUmVjdFdpdGhDb2xvciB3aXRoIENvbG9yOjp0cmFuc3BhcmVu
dCBkb2Vzbid0IHBlcmZvcm0gYW55dGhpbmcKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTEwMTkxMQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIGZpbGxSZWN0V2l0aENvbG9yIHdpdGggQ29sb3I6OnRyYW5zcGFy
ZW50IGRvZXNuJ3QgcGVyZm9ybSBhbnl0aGluZworICAgICAgICBiZWNhdXNlIGZpbGxSZWN0V2l0
aENvbG9yIGRvZXMgZWFybHktcmV0dXJuIGlmIHRoZSBhbHBoYSB2YWx1ZSBvZgorICAgICAgICBj
b2xvciBpcyB6ZXJvLiBCdXQgd2UgZXhwZWN0IH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