<?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>88234</bug_id>
          
          <creation_ts>2012-06-04 08:06:46 -0700</creation_ts>
          <short_desc>Don&apos;t mark main frame layer opaque if the frame view is transparent</short_desc>
          <delta_ts>2012-06-17 19:28:33 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Arvid Nilsson">anilsson</reporter>
          <assigned_to name="Arvid Nilsson">anilsson</assigned_to>
          <cc>andersca</cc>
    
    <cc>eric</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>640589</commentid>
    <comment_count>0</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2012-06-04 08:06:46 -0700</bug_when>
    <thetext>In the BlackBerry port, we sometimes use an AC layer to draw the contents of the &quot;root&quot; layer, i.e. the output of the main frame&apos;s FrameView::drawContents().

We also use the GraphicsLayer::contentsOpaque() (and other factors) to figure out whether to enable GL blending when compositing that layer.

I found some code that sets the main frame renderview&apos;s layer opaque (unconditionally) which looks like it could break things when the main frame&apos;s FrameView has a transparent background color, because it will cause us to turn off blending for that layer.

This should be seen in context of bug #88233.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640592</commentid>
    <comment_count>1</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2012-06-04 08:07:47 -0700</bug_when>
    <thetext>Change component</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640598</commentid>
    <comment_count>2</comment_count>
      <attachid>145589</attachid>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2012-06-04 08:14:26 -0700</bug_when>
    <thetext>Created attachment 145589
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640600</commentid>
    <comment_count>3</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2012-06-04 08:15:16 -0700</bug_when>
    <thetext>We use void FrameView::updateBackgroundRecursively(const Color&amp;, bool) to set the background color and isTransparent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640603</commentid>
    <comment_count>4</comment_count>
      <attachid>145589</attachid>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2012-06-04 08:16:08 -0700</bug_when>
    <thetext>Comment on attachment 145589
Patch

I&apos;m putting this patch up to get a sanity check from the Mac port and some feedback on whether this is testable on Mac (or any other) platform.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640606</commentid>
    <comment_count>5</comment_count>
      <attachid>145589</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-06-04 08:28:27 -0700</bug_when>
    <thetext>Comment on attachment 145589
Patch

I think this is OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640613</commentid>
    <comment_count>6</comment_count>
      <attachid>145589</attachid>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2012-06-04 08:39:48 -0700</bug_when>
    <thetext>Comment on attachment 145589
Patch

Thanks Simon, I&apos;ve verified that this fixes the bug on our platform, let&apos;s see how it fares in the commit queue...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651111</commentid>
    <comment_count>7</comment_count>
      <attachid>145589</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-17 19:28:27 -0700</bug_when>
    <thetext>Comment on attachment 145589
Patch

Clearing flags on attachment: 145589

Committed r120561: &lt;http://trac.webkit.org/changeset/120561&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651113</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-17 19:28:33 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>145589</attachid>
            <date>2012-06-04 08:14:26 -0700</date>
            <delta_ts>2012-06-17 19:28:27 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-88234-20120604171424.patch</filename>
            <type>text/plain</type>
            <size>1566</size>
            <attacher name="Arvid Nilsson">anilsson</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE5MTg1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggODcxNjJkNTIwNTBhMjQx
ZDRkNDQ4N2MxZTI5MDQ4ZmI3OTA5OTNmMy4uZTg3OTI0MzIwNThhNDE4Y2ZhMGRiZmQxNzg1NzE3
MzExMGI1ZDA4MSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDEyLTA2LTA0ICBBcnZp
ZCBOaWxzc29uICA8YW5pbHNzb25AcmltLmNvbT4KKworICAgICAgICBEb24ndCBtYXJrIG1haW4g
ZnJhbWUgbGF5ZXIgb3BhcXVlIGlmIHRoZSBmc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