<?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>23569</bug_id>
          
          <creation_ts>2009-01-27 06:52:55 -0800</creation_ts>
          <short_desc>[Gtk] Non-rectangular buttons have a square background behind them</short_desc>
          <delta_ts>2010-10-09 08:24:24 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Cimitan">andrea.cimitan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bearoso+webkitbugzilla</cc>
    
    <cc>jmalonzo</cc>
    
    <cc>mrobinson</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107181</commentid>
    <comment_count>0</comment_count>
    <who name="Andrea Cimitan">andrea.cimitan</who>
    <bug_when>2009-01-27 06:52:55 -0800</bug_when>
    <thetext>Both buttons and entries have a squared border in webkitgtk.
For the entry, there&apos;s gtk style property that could be added to the widget in order to tell the theming engine to not draw the background.
Here is the mozilla patch, which will land in firefox 3.1:
https://bugzilla.mozilla.org/show_bug.cgi?id=405421

I don&apos;t know that happenes with the buttons (they were already working correctly in gecko), but they have a squared rectangle below, which of course looks out of place</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114015</commentid>
    <comment_count>1</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-03-17 06:19:34 -0700</bug_when>
    <thetext>We seem to have this patch in our gtk2drawing.c already. Any idea of what could be going on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118897</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2009-04-26 02:06:37 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; We seem to have this patch in our gtk2drawing.c already. Any idea of what could
&gt; be going on?
&gt; 

honor-transparent-bg-hint is only for GtkEntry based on the moz code and the discussion in the bug. I think we need to do this for GtkButton as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159693</commentid>
    <comment_count>3</comment_count>
      <attachid>42286</attachid>
    <who name="Brandon Wright">bearoso+webkitbugzilla</who>
    <bug_when>2009-11-01 17:38:51 -0800</bug_when>
    <thetext>Created attachment 42286
Patch to fix buttons

This one is far too easy for how long it&apos;s gone unfixed. Attached patch fixes the problem by not filling the background on buttons (the theme should be doing it anyhow, if necessary). Patch is against 1.1.15.2, but works on trunk, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159695</commentid>
    <comment_count>4</comment_count>
    <who name="Brandon Wright">bearoso+webkitbugzilla</who>
    <bug_when>2009-11-01 18:01:20 -0800</bug_when>
    <thetext>Additionally, line 871 of gtk2drawing.c in the moz_gtk_init () function totally breaks honors-transparent-bg-hint support for GtkEntry by forcing the setting to FALSE no matter the theme. 

I&apos;m not sure what particular issues setting this to FALSE fixes, but a theme setting the flag means that it supports the behavior. Any problems with it should be reported to the theme engine authors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159720</commentid>
    <comment_count>5</comment_count>
    <who name="Brandon Wright">bearoso+webkitbugzilla</who>
    <bug_when>2009-11-01 19:57:13 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Additionally, line 871 of gtk2drawing.c in the moz_gtk_init () function totally
&gt; breaks honors-transparent-bg-hint support for GtkEntry by forcing the setting
&gt; to FALSE no matter the theme. 
My mistake. I&apos;ve checked this and it shouldn&apos;t actually be affecting the value. In fact, it looks like &quot;honors-transparent-bg-hint&quot; isn&apos;t being picked up. The other widgets with the transparent-bg-hint flag don&apos;t actually read the &quot;honors-transparent-bg-hint&quot; flag, but just push the &quot;transparent-bg-hint&quot; bit.

Fixing this, however, the GtkEntry still won&apos;t go transparent. Some parent of the widget or wrapping code is drawing a box around it. I don&apos;t remember what version this regressed in, but this WAS working correctly at one time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292027</commentid>
    <comment_count>6</comment_count>
      <attachid>70334</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-10-08 19:42:43 -0700</bug_when>
    <thetext>Created attachment 70334
Patch for this issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292078</commentid>
    <comment_count>7</comment_count>
      <attachid>70334</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-10-09 02:41:40 -0700</bug_when>
    <thetext>Comment on attachment 70334
Patch for this issue

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

Great!

&gt; WebCore/ChangeLog:15
&gt; +

Indeed, I actually remember they do exactly this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292115</commentid>
    <comment_count>8</comment_count>
      <attachid>70334</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-10-09 08:24:20 -0700</bug_when>
    <thetext>Comment on attachment 70334
Patch for this issue

Clearing flags on attachment: 70334

Committed r69448: &lt;http://trac.webkit.org/changeset/69448&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292116</commentid>
    <comment_count>9</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-10-09 08:24:24 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42286</attachid>
            <date>2009-11-01 17:38:51 -0800</date>
            <delta_ts>2010-10-08 19:42:41 -0700</delta_ts>
            <desc>Patch to fix buttons</desc>
            <filename>webkit-gtk-button-no-clear.patch</filename>
            <type>text/plain</type>
            <size>498</size>
            <attacher name="Brandon Wright">bearoso+webkitbugzilla</attacher>
            
              <data encoding="base64">LS0tIHdlYmtpdC0xLjEuMTUuMi9XZWJDb3JlL3BsYXRmb3JtL2d0ay9ndGsyZHJhd2luZy5jCTIw
MDktMDktMjIgMTA6Mjk6MjEuMDAwMDAwMDAwIC0wNTAwCisrKyB3ZWJraXQtMS4xLjE1LjItbmV3
L1dlYkNvcmUvcGxhdGZvcm0vZ3RrL2d0azJkcmF3aW5nLmMJMjAwOS0xMS0wMSAxOToyODoyNS4x
OTM5MzAwNjcgLTA2MDAKQEAgLTgwNCw4ICs4MDQsNiBAQAogCiAgICAgaWYgKFdJTkRPV19JU19N
QVBQRUQoZHJhd2FibGUpKSB7CiAgICAgICAgIGdka193aW5kb3dfc2V0X2JhY2tfcGl4bWFwKGRy
YXdhYmxlLCBOVUxMLCBUUlVFKTsKLSAgICAgICAgZ2RrX3dpbmRvd19jbGVhcl9hcmVhKGRyYXdh
YmxlLCBjbGlwcmVjdC0+eCwgY2xpcHJlY3QtPnksCi0gICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBjbGlwcmVjdC0+d2lkdGgsIGNsaXByZWN0LT5oZWlnaHQpOwogICAgIH0KIAogICAgIGd0
a193aWRnZXRfc2V0X3N0YXRlKHdpZGdldCwgYnV0dG9uX3N0YXRlKTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70334</attachid>
            <date>2010-10-08 19:42:43 -0700</date>
            <delta_ts>2010-10-09 08:24:20 -0700</delta_ts>
            <desc>Patch for this issue</desc>
            <filename>bug-23569-20101008194243.patch</filename>
            <type>text/plain</type>
            <size>2386</size>
            <attacher name="Martin Robinson">mrobinson</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NTEwNTVmNjc2ODcxZjYxMTVlNmJlNjVlNGI1NTJmODZhYjA4ODhjYi4uOTNjNTQzZDA0MWZhNjFh
YjdlYjY1YTA2NzE5YjU4MjRiNzhhMTQyNiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cK
KysrIGIvV2ViQ29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwyNiBAQAorMjAxMC0xMC0wOCAgTWFy
dGluIFJvYmluc29uICA8bXJvYmluc29uQGlnYWxpYS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQg
YnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgW0d0a10gTm9uLXJlY3Rhbmd1bGFyIGJ1dHRv
bnMgaGF2ZSBhIHNxdWFyZSBiYWNrZ3JvdW5kIGJlaGluZCB0aGVtCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMzU2OQorCisgICAgICAgIFJlbW92ZSBz
b21lIGNvZGUgd2hpY2ggd2FzIGNsZWFyaW5nIHBpZWNlcyBvZiB0aGUgR2RrRHJhd2FibGUgaWYg
aXQgd2FzCisgICAgICAgIGN1cnJlbnRseSBtYXBwZWQgdG8gYSB3aW5kb3cuIEluIG91ciBjYXNl
IGl0IGlzIHVubmVjZXNzYXJ5LCBiZWNhdXNlIHRoZQorICAgICAgICBwbGF0Zm9ybS1pbmRlcGVu
ZGVudCBwYXJ0cyBvZiB0aGUgcmVuZGVyIGhhdmUgYWxyZWFkeSBjbGVhcmVkIHRoaXMgc2VjdGlv
bgorICAgICAgICBpZiBpdCBpcyBuZWVkZWQuCisKKyAgICAgICAgTW96aWxsYSBtdXN0IG5vdCB0
cmlwIHRoaXMgY29kZ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