<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>157850</bug_id>
          
          <creation_ts>2008-02-15 05:20:40 +0000</creation_ts>
          <short_desc>KStandardDirs picks kde3 application data instead of kde4&apos;s when both are installed (affects khtml)</short_desc>
          <delta_ts>2009-10-14 03:45:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>general</component>
          <version>4.0</version>
          <rep_platform>unspecified</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>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tkaitchuck</reporter>
          <assigned_to name="kdelibs bugs">kdelibs-bugs-null</assigned_to>
          <cc>a.m.p.boelens</cc>
    
    <cc>bh.inbox</cc>
    
    <cc>debian</cc>
    
    <cc>exabyte</cc>
    
    <cc>fabo</cc>
    
    <cc>faure</cc>
    
    <cc>finex</cc>
    
    <cc>georg.wittenburg</cc>
    
    <cc>hkBst</cc>
    
    <cc>jachymb</cc>
    
    <cc>jlp</cc>
    
    <cc>list</cc>
    
    <cc>lists-kdedevel</cc>
    
    <cc>mail</cc>
    
    <cc>me</cc>
    
    <cc>mefoster</cc>
    
    <cc>mpapet</cc>
    
    <cc>ndbecker2</cc>
    
    <cc>r-kde</cc>
    
    <cc>rasasi78</cc>
    
    <cc>rdieter</cc>
    
    <cc>seufert</cc>
    
    <cc>tiposchi</cc>
    
    <cc>torquil</cc>
    
    <cc>west.wallaby</cc>
    
    <cc>zahl</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>66</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>580432</commentid>
    <comment_count>0</comment_count>
    <who name="">tkaitchuck</who>
    <bug_when>2008-02-15 05:20:41 +0000</bug_when>
    <thetext>Version:           unknown (using 4.0.1 (KDE 4.0.1), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.22-3-amd64

Using the default &apos;Oxygen&apos; schema, Konqueror will make input boxes borderless until the mouse clicks on them. This makes sites like bugs.kde.org virtually unusable as they have the same background color inside the input box as for the page, so one cannot tell the box is even there until you click on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584722</commentid>
    <comment_count>1</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-06 12:39:21 +0000</bug_when>
    <thetext>I confirm this bug. 
It makes quite impossible to fill forms on web page with black background as text in form is in black too.

See a sample here: http://pacte.blogs.apf.asso.fr/sign.html
note that this page is for impaired users...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584815</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-06 20:21:06 +0000</bug_when>
    <thetext>Can&apos;t confirm. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584883</commentid>
    <comment_count>3</comment_count>
    <who name="Camilla Boemann">cbo</who>
    <bug_when>2008-03-07 00:05:49 +0000</bug_when>
    <thetext>I couldn&apos;t confirm when i compiled from sources.

But then i installed 4.0.1 packages from debian and then I see it. I don&apos;t think it&apos;s a distribution thing as such, but something must be different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584985</commentid>
    <comment_count>4</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-07 11:37:30 +0000</bug_when>
    <thetext>Well, I forgot to say I am in Debian Sid, AMD64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584988</commentid>
    <comment_count>5</comment_count>
    <who name="Camilla Boemann">cbo</who>
    <bug_when>2008-03-07 11:43:16 +0000</bug_when>
    <thetext>hmm that is 3 times debian - a pattern is emerging :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584989</commentid>
    <comment_count>6</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-07 11:46:59 +0000</bug_when>
    <thetext>I can try in Kubuntu if you need. Do you know if the packages are the same ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584993</commentid>
    <comment_count>7</comment_count>
    <who name="Camilla Boemann">cbo</who>
    <bug_when>2008-03-07 11:50:04 +0000</bug_when>
    <thetext>i have no idea, but please try as many distributions as you can

well you can stop when you find a distribution that doesn&apos;t show the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>585384</commentid>
    <comment_count>8</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-08 21:47:48 +0000</bug_when>
    <thetext>*** Bug 158981 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586113</commentid>
    <comment_count>9</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-11 11:31:45 +0000</bug_when>
    <thetext>The bug doesn&apos;t happened with kubuntu on AMD64 (I confirmed the bug with Debian on the same computer).
So, it&apos;s a Debian bug...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586114</commentid>
    <comment_count>10</comment_count>
    <who name="Camilla Boemann">cbo</who>
    <bug_when>2008-03-11 11:40:04 +0000</bug_when>
    <thetext>Great, thanks for examining this.
I&apos;ll get hold of some debian dev and discuss this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586152</commentid>
    <comment_count>11</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-11 14:10:24 +0000</bug_when>
    <thetext>Irronically, quirks mode is OK. Strict &amp; transitional are not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586158</commentid>
    <comment_count>12</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-11 14:29:07 +0000</bug_when>
    <thetext>I have the bug on pages with and without doctype settings</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586177</commentid>
    <comment_count>13</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-11 15:54:40 +0000</bug_when>
    <thetext>&quot;background-color: transparent&quot; is causing this problem. transparent is default for standards compliant mode whereas other value is probably default for quirks mode. Setting e.g. &quot;background-color: white&quot; for input elements make borders reappear. Can you confirm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586205</commentid>
    <comment_count>14</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-11 18:09:00 +0000</bug_when>
    <thetext>Confirmed with background-color:white for an input field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586302</commentid>
    <comment_count>15</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-12 00:14:33 +0000</bug_when>
    <thetext>In QLineEdit case, Oxygen uses QPalette::Window color to draw QLineEdit frame. If that color is set to QColor(0,0,0,0) (what khtml does in case of background-color: transparent), QLineEdit ends up with non-visible frame.
The problem can be reproduced by writing a simple Qt-only Gui application with a QLineEdit using palette which QPalette::Window &amp; QPalette::Base are set to QColor(0,0,0,0). Example attached below. My setBgColor() is essentially the same to what khtml does to set background color.

There are similar problems with QComboBox, QPushButton (and maybe something else) too. What&apos;s more, there&apos;s another very annoying problem that QComboBox item scrollbox is completely broken with transparent color (try to scroll it and you should see), but that seems to be generic Qt problem (because other styles suffer from it too).

So this problem does not look like Debian-specific at all. However, I did all these tests on Debian sid/amd64 Qt 4.3.4/kde 3.5.9. Please test on other distros.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586303</commentid>
    <comment_count>16</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-12 00:15:05 +0000</bug_when>
    <thetext>I meant kde 4.0.2. Sorry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586304</commentid>
    <comment_count>17</comment_count>
      <attachid>23870</attachid>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-12 00:17:47 +0000</bug_when>
    <thetext>Created attachment 23870
Short test case (Qt only)

Compile with:

g++ transtest.cpp -o transtest -I/usr/include/qt4 -lQtCore -lQtGui</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>586305</commentid>
    <comment_count>18</comment_count>
    <who name="Camilla Boemann">cbo</who>
    <bug_when>2008-03-12 00:25:11 +0000</bug_when>
    <thetext>I&apos;ve gone through the debian patches and couldn&apos;t find anything to explain why it happens on some distributions and not others.

Thanks Modestas, it sounds like you have cracked it. Yay for the power of opensource :)

I&apos;ll try to work on a fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587090</commentid>
    <comment_count>19</comment_count>
    <who name="George">multescugeorge</who>
    <bug_when>2008-03-15 14:36:02 +0000</bug_when>
    <thetext>Tested on Fedora 9 rawhide, Using Oxygen schema. kde 4.0.2. Bug is alive

Any input fields or click-to-check buttons on web pages are invisible until you click on them. It even happens on http://bugs.kde.org .  Hilarious to go hunting for check boxes with you mouse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588993</commentid>
    <comment_count>20</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-23 17:33:23 +0000</bug_when>
    <thetext>*** Bug 156152 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>588995</commentid>
    <comment_count>21</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-03-23 17:33:46 +0000</bug_when>
    <thetext>*** Bug 159590 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589378</commentid>
    <comment_count>22</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2008-03-25 22:29:45 +0000</bug_when>
    <thetext>transtest.cpp is a horrible example... you asked us to make everything transparent, so we did. Don&apos;t do that :-).

I&apos;m looking at improving things when only Window is transparent...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589384</commentid>
    <comment_count>23</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-25 22:51:42 +0000</bug_when>
    <thetext>transtest.cpp is a shortened version of *what khtml does* (background-color defaults to transparent as per CSS).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589413</commentid>
    <comment_count>24</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2008-03-26 01:03:50 +0000</bug_when>
    <thetext>Does khtml *also set button and base transparent*? What exactly are you expecting? You asked us to use transparent for all our drawing (except text) so we did. I&apos;ve no intention of fixing that and I don&apos;t think boemann does either.

I&apos;m investigating making lineedits more clever when only window color is &quot;missing&quot;, but if the palette is &quot;empty&quot; there&apos;s nothing we can do about it (and if it is, I&apos;d point the finger at khtml, which shouldn&apos;t be doing such things).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589421</commentid>
    <comment_count>25</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-03-26 01:37:14 +0000</bug_when>
    <thetext>&gt; Does khtml *also set button and base transparent*?
As far as I can tell, yes, it does. Are you using konqueror 4? If you do, you should see this problem when you look at the &quot;Commit&quot; button below in this page. Offending code is in kdelibs/khtml/rendering/render_replaced.cpp at RenderWidget::updateFromElement()

If you believe khtml is doing something wrong (and you know more about styles than I do), reassign the bug to khtml. I&apos;m not a kde developer, simply this bug is my &apos;pet&apos; bug so I invested some time into tracking it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589423</commentid>
    <comment_count>26</comment_count>
      <attachid>24055</attachid>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2008-03-26 01:38:32 +0000</bug_when>
    <thetext>Created attachment 24055
patch to use Base for 3d effects if Window is invalid

Here&apos;s a patch to use Base instead of Window for the 3d-effects drawing (the
shadow in particular) if Window is invalid (i.e. alpha=0). Since I don&apos;t seem
to have the problem, can someone please let me know if this works for them?

I can&apos;t test with transtest, as for some reason I seem to be getting
Window==Qt::black for that, which results (correctly) in a white shadow color.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>589459</commentid>
    <comment_count>27</comment_count>
    <who name="Xavier Brochard">xavier</who>
    <bug_when>2008-03-26 09:50:23 +0000</bug_when>
    <thetext>I&apos;ve tested with other styles (Debian sid/amd64, KDE 4.02).
- Phase: same problem
- Motif: same problem
- CDE: same problem
- MS Windows 9x: right and bottom border of fields are invisibles; upper and left border of submit and cancel buttons are invisibles; left and bottom border of select fields are invisibles.
- Cleanlooks: right border of Checkbox and Radio buttons are invisibles, other fields are ok.
- Plastique: everything works.

Is it related to shadow and 3D effects on fields?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595030</commentid>
    <comment_count>28</comment_count>
    <who name="Mary Ellen Foster">mefoster</who>
    <bug_when>2008-04-19 10:41:26 +0000</bug_when>
    <thetext>Still definitely an issue with Fedora 9 (KDE 4.0.3). I also find that pulldown lists get corrupted display -- is this the same issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595034</commentid>
    <comment_count>29</comment_count>
    <who name="Mary Ellen Foster">mefoster</who>
    <bug_when>2008-04-19 10:54:25 +0000</bug_when>
    <thetext>No, the pulldown lists are bug 157850 ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>595035</commentid>
    <comment_count>30</comment_count>
    <who name="Mary Ellen Foster">mefoster</who>
    <bug_when>2008-04-19 10:55:27 +0000</bug_when>
    <thetext>Oops, I meant bug 155573</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>597129</commentid>
    <comment_count>31</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-04-26 02:41:48 +0000</bug_when>
    <thetext>The patch does not fix the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599013</commentid>
    <comment_count>32</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-05-05 15:31:54 +0000</bug_when>
    <thetext>I&apos;ve tried the URL on the comment #1. The input fields use a clear background. Even bugs.kde.org input fields are ok: them show a border.

This bug seems fixed to me (trunk, r802881).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599091</commentid>
    <comment_count>33</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-05-05 21:02:01 +0000</bug_when>
    <thetext>I&apos;m using trunk too (804262) and I can confirm that the issue is NOT fixed. Maybe this is video driver issue? I&apos;m using nvidia (proprietary) driver on this machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599139</commentid>
    <comment_count>34</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-05-06 01:25:32 +0000</bug_when>
    <thetext>I&apos;m using nvidia drivers too.
I&apos;ve tested on a clean user directory with the default KDE settings.

@Modestas: What version of Qt are you using?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599453</commentid>
    <comment_count>35</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-05-07 11:27:04 +0000</bug_when>
    <thetext>Qt 4.4.0~rc1 for the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599461</commentid>
    <comment_count>36</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2008-05-07 11:58:11 +0000</bug_when>
    <thetext>Me too. Anyway I&apos;m recompiling trunk with the new 4.4 final. Let see how it will works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>601636</commentid>
    <comment_count>37</comment_count>
    <who name="Voker57">voker57</who>
    <bug_when>2008-05-16 17:02:54 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>602458</commentid>
    <comment_count>38</comment_count>
      <attachid>24840</attachid>
    <who name="Sergey Saukh">thelich</who>
    <bug_when>2008-05-19 03:53:07 +0000</bug_when>
    <thetext>Created attachment 24840
Transparent background fix

In my case Plastique style has the same issue.
As mentioned above - the problem is in the
kdelibs/khtml/rendering/render_replaced.cpp at
RenderWidget::updateFromElement(). if backgroundColor is invalid (alpha is
undefined) and rendering mode not inCompatible (style()-&gt;htmlHacks() is true)
then backgroundColor is set to be transparent (0,0,0,0) (QColor(0,0,0,0) IS a
valid color). This explains why in quirks mode rendering is ok (because in this
case backgroundColor is set to backgroundRole). This patch fixes this issue for
me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>602607</commentid>
    <comment_count>39</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2008-05-19 17:48:57 +0000</bug_when>
    <thetext>If plastique has the same issue, then it is NOT an oxygen bug. Fix khtml to not give us riddiculous palettes; we&apos;re just doing what we were told.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603137</commentid>
    <comment_count>40</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-21 19:03:30 +0000</bug_when>
    <thetext>hmm, there is a mix of isues here, so lets try to clear things up...

It is perfectly legitimate for KHTML widgets to be as transparent as possible when specifically asked by CSS.
e.g. &quot;background-color: transparent&quot;, or &quot;background-color: inherit&quot; when the parent has no color.

But of course this is in no way our default settings.

As you can see in css/html4.css, our widgets have default CSS colours which are mapped to &apos;sensible&apos; system colours in misc/helper.cpp.

So there is obviously something wrong with the colour setup of vendors for which normal form widget appear transparent.

For instance, a lineedit default background is &apos;background-color: window&apos; which should map to qApp&apos;s QPalette::Base

@Sergey: what your patch says is that you are getting an invalid background-color. And this should not happen with default CSS style..

Could you please investigate what the CSS-to-system colours mappings are on your system?
(See khtml::colorForCSSValue( int css_value ) in misc/helper.cpp
that&apos;s the place where wrong things are happening as far as I can tell)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603282</commentid>
    <comment_count>41</comment_count>
    <who name="Sergey Saukh">thelich</who>
    <bug_when>2008-05-22 05:52:54 +0000</bug_when>
    <thetext>Well, *if* &quot;background-color&quot; was set for element - then everything works ok. In my case &quot;html4.css&quot; didn&apos;t contain such definitions (I think it&apos;s Debian issue, because in svn version &quot;html4.css&quot; do contain proper &quot;background-color&quot; for every form element).
But I think that there should be some kind of protection against not properly written css files, i.e. KHTML should not make widget to be transparent if no background-color was set for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603305</commentid>
    <comment_count>42</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-05-22 10:06:26 +0000</bug_when>
    <thetext>It is not Debian issue (or it&apos;s not due to modified html4.css) and Debian does not patch khtml at all:

$ md5sum src/kde/kdesvn/kdelibs/khtml/css/html4.css  /usr/share/kde4/apps/khtml/css/html4.css
61e83bf7e502092f486f428d10616209  src/kde/kdesvn/kdelibs/khtml/css/html4.css
61e83bf7e502092f486f428d10616209  /usr/share/kde4/apps/khtml/css/html4.css</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603319</commentid>
    <comment_count>43</comment_count>
    <who name="Sergey Saukh">thelich</who>
    <bug_when>2008-05-22 11:37:47 +0000</bug_when>
    <thetext>There is 2 packages installed in my system:
kdelibs-data (3.5.8) to support kde3 programms
kdelibs5-data (4.0.72)

first places it&apos;s files into /usr/share/apps
second places into /usr/share/kde4/apps

/usr/share/kde4/apps/khtml/css/html4.css (61e83bf7e502092f486f428d10616209) - has all definitions
/usr/share/apps/khtml/css/html4.css (a8249376d53cd223880fa3e2d6dbc810) - don&apos;t have &quot;background-color&quot; in form fields definitions.

The main problem is, that KStandardDirs look for html4.css in this order:
/home/user/.kde4/share/apps
/usr/share/apps
/usr/share/kde4/apps

So, the first file which it finds will be html4.css from the kde3.
That&apos;s why I&apos;m insist that khtml should properly handle backgroundColor *even* if it is not set in default css file. Setting background to QColor(0,0,0,0) is evil.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603325</commentid>
    <comment_count>44</comment_count>
    <who name="Modestas Vainius">modax.reg</who>
    <bug_when>2008-05-22 12:04:40 +0000</bug_when>
    <thetext>Thanks a lot Sergey, you&apos;ve just pointed to the solution of 2 bugs! (i.e. we need to patch KStandardDirs)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603351</commentid>
    <comment_count>45</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-22 14:48:50 +0000</bug_when>
    <thetext>re:#43 
&gt; That&apos;s why I&apos;m insist that khtml should properly handle backgroundColor
&gt; *even* if it is not set in default css file. Setting background to
&gt; QColor(0,0,0,0) is evil.

Certainly, but we don&apos;t have such choice because we are not the ones who abused the CSS specification by applying random CSS properties to form widgets.
We just go out of our way to provide the best compatibility we can with the web as it is - and the proprietary features of other engines.

For instance, try to paste this in the address bar of a Mozilla browser, then in that of Konqueror:

data:text/html,&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;&lt;body style=&apos;background:url(http://kde.org/img/kde40.png) no-repeat&apos;&gt;&lt;input type=button value=Lorem style=background-color:transparent;font-size:35px&gt;

OTOH, there is indeed room for improvement when using the Oxygen style - we should let the borders be visible when non-focused. Also #155573 is valid - we shouldn&apos;t let transparency be inherited by the drop-down widget.
Patches making progress on that fence are very welcome.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603353</commentid>
    <comment_count>46</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-22 15:00:42 +0000</bug_when>
    <thetext>Reassigning/retitling in light of Serguey&apos;s findings.
Not sure if this is a vendor problem or KDE bug though..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603512</commentid>
    <comment_count>47</comment_count>
    <who name="Sergey Saukh">thelich</who>
    <bug_when>2008-05-23 04:13:59 +0000</bug_when>
    <thetext>@Germain
I&apos;m not arguing with you against CSS validity, I&apos;m talking about updateFromElement behaviour. *IF* there was &quot;background-color:transparent&quot;, then there should be QColor(0,0,0,0), but I don&apos;t understand why backgroundColor have to be set to QColor(0,0,0,0) when no &quot;background-color&quot; was set at all!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603764</commentid>
    <comment_count>48</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2008-05-24 00:13:18 +0000</bug_when>
    <thetext>&gt; we should let the borders be visible when non-focused

We should not ask for invisible widgets unless the CSS genuinely did that. If you (khtml) ask for an invisible widget, and Oxygen obliges you by giving you an invisible widget, that&apos;s not a bug. As the joke goes, &quot;don&apos;t do that&quot; (&quot;doctor, it hurts when I do this...&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604468</commentid>
    <comment_count>49</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2008-05-27 05:47:58 +0000</bug_when>
    <thetext>Sergey:  How does Debian setup the KDEDIRS (and XDG_DATA_DIRS for that matter) on your system?  I have the suspicion that /usr is a valid search dir for KStandardDirs but I wasn&apos;t aware that KStandardDirs could use paths like /usr/share/kde4.  (KStandardDirs normally appends /share/$type which would lead to paths like /usr/kde4/share/apps, and I don&apos;t see any code which would make it /usr/share/kde4/apps).

You want to make sure it has more specific entries before less specific ones.  i.e.

export XDG_DATA_DIRS=/usr/kde4/share:/usr/share

My interpretation of the code is that XDG_DATA_DIRS if set precedes KDEDIRS but you may want to try just settings XDG_DATA_DIRS right and leaving KDEDIRS alone.

I figure Debian patched KDE to search per Debian&apos;s guidelines but they need to make sure to search KDE 4 directories before system directories in that case.  (Or in many many less words, I&apos;m not sure that KStandardDirs is really buggy).

For part 2, I don&apos;t see what the reason is for making the color transparent when there is no background-color entry set at all, which seems to be the case here?  Is there a way to make the default white (or Background) and only change it if it&apos;s actually set in the CSS somewhere?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604471</commentid>
    <comment_count>50</comment_count>
    <who name="Sergey Saukh">thelich</who>
    <bug_when>2008-05-27 06:02:33 +0000</bug_when>
    <thetext>On Debian there is no /usr/kde4/share folder, there is /usr/share/kde4 (apps,config, e.t.c. all in there).

Debian does not set any environment variables like KDEDIRS or XDG_DATA_DIRS also. (At leas my default-configured user doesn&apos;t have any).

For part 2, I&apos;ve proposed a patch (&quot;transparent background fix&quot;). It does everything you wrote about.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604696</commentid>
    <comment_count>51</comment_count>
    <who name="Michael Pyne">mpyne</who>
    <bug_when>2008-05-28 05:34:51 +0000</bug_when>
    <thetext>Sergey: Your patch works fine for me and on a strict HTML 4.01 document I constructed seemed to work fine in the cases of:

* No background specified (some solid color was picked up)
* Transparent background chosen (background was transparent)
* Background color specified (the color was used).

This doesn&apos;t fix no border being drawn around &quot;invisible&quot; input widgets though, but that&apos;s a less pressing issue I think.

I would recommend applying this patch (attachment 24840) so that Debian users can still get a sane default background color if their system misconfigures the KStandardDirs search path (which I think is the case here, I don&apos;t think KStandardDirs is buggy).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604717</commentid>
    <comment_count>52</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-28 08:49:28 +0000</bug_when>
    <thetext>SVN commit 813566 by ggarand:

correct default stylesheet is mandatory for proper KHTML operation.
--&gt; versionize, check on start up, abort on mismatch.

Will catch botched setups where kde3 application data dirs are used
instead of kde4&apos;s (#157850.)

CCBUG: 157850


 M  +12 -0     cssstyleselector.cpp  
 M  +2 -0      html4.css  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=813566
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604723</commentid>
    <comment_count>53</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-28 09:09:03 +0000</bug_when>
    <thetext>&gt; I don&apos;t understand why backgroundColor have to be set to QColor(0,0,0,0) when
&gt; no &quot;background-color&quot; was set at all! 

because that&apos;s how CSS work! There is no such thing as an unset CSS property. Properties have initial values. The background-color property&apos;s initial value *is* &apos;transparent&apos;.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604762</commentid>
    <comment_count>54</comment_count>
    <who name="Sergey Saukh">thelich</who>
    <bug_when>2008-05-28 12:17:46 +0000</bug_when>
    <thetext>&gt; because that&apos;s how CSS work! There is no such thing as an unset CSS property. Properties have initial values. The background-color property&apos;s initial value *is* &apos;transparent&apos;. 

Well, I thought that *if* element doesn&apos;t have background-color set, then it uses parent&apos;s background, *if* parent doesn&apos;t have this property set then it uses property of its parent and so on.
I.e. it should end up with main window background (body), but it will be real color, not transparent.
I didn&apos;t find in CSS specifications that background-color (or any other color) should have &apos;transparent&apos; initial value. It said to be UA dependent.
But if you say that it should be transparent - then let it be transparent...
I agree that there should be borders around elements in case of transparency, but what color have to be set for drop-down lists? transparent color make them look very wierd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604865</commentid>
    <comment_count>55</comment_count>
    <who name="Matthew Woehlke">mwoehlke.floss</who>
    <bug_when>2008-05-28 22:06:30 +0000</bug_when>
    <thetext>Firefox makes form widgets use system widget colors unless otherwise specified, which IMO is The Right Thing To Do. What&apos;s odd is that Konqueror, at least my build, seems to do the same? I guess because this box is KDE3-free I don&apos;t have the &quot;affects khtml&quot; problem?

And when did invisible widgets become &quot;loss of data or system crashes&quot;? I&apos;m adjusting this bug&apos;s severity accordingly. (I&apos;m fine leaving it at &quot;major&quot;, but seriously, &quot;grave&quot;?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605005</commentid>
    <comment_count>56</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-29 14:12:16 +0000</bug_when>
    <thetext>*** Bug 162804 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605007</commentid>
    <comment_count>57</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-29 14:13:32 +0000</bug_when>
    <thetext>*** Bug 162806 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605024</commentid>
    <comment_count>58</comment_count>
    <who name="Rex Dieter">rdieter</who>
    <bug_when>2008-05-29 15:14:22 +0000</bug_when>
    <thetext>Discussed on #kde-devel a couple days ago, the consensus from distro packagers present anyway (Trigger7 and myself mostly, but thiago wasn&apos;t convinced yet...) was that
kde4-config --path data
should have the value of 
DATA_INSTALL_DIR (/usr/share/kde4/apps here)
come before 
CMAKE_INSTALL_PREFIX/share/apps (/usr/share/apps)

I took a look at the kstandarddirs.cpp code, and unfortunately to my non-coder eyes, this would be non-trivial to fix cleanly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605056</commentid>
    <comment_count>59</comment_count>
    <who name="Matthias Kretz">kretz</who>
    <bug_when>2008-05-29 17:54:54 +0000</bug_when>
    <thetext>I agree that DATA_INSTALL_DIR must be preferred over CMAKE_INSTALL_PREFIX/share/apps. The latter is not used by the installation so there should be no files from the KDE4 installation anyway. All the relevant files should be in DATA_INSTALL_DIR only. AFAICS removing CMAKE_INSTALL_PREFIX/share/apps from the list completely should be correct if all KDE application installs use DATA_INSTALL_DIR.

But I imagine that would break apps that don&apos;t set DATA_INSTALL_DIR, especially self compiled KDE applications. So the best fix IMO is to make sure DATA_INSTALL_DIR comes before CMAKE_INSTALL_PREFIX/share/apps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605211</commentid>
    <comment_count>60</comment_count>
    <who name="Fathi Boudra">fabo</who>
    <bug_when>2008-05-30 07:57:09 +0000</bug_when>
    <thetext>In case you are not subscribed to kde-core-devel mailing list, A patch was proposed by Sune (thread subject is &quot;kstandarddirs&quot;). Feel free to comments. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605361</commentid>
    <comment_count>61</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-30 18:06:52 +0000</bug_when>
    <thetext>*** Bug 162904 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605365</commentid>
    <comment_count>62</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-05-30 18:14:58 +0000</bug_when>
    <thetext>*** Bug 162807 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>606001</commentid>
    <comment_count>63</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-06-01 18:56:07 +0000</bug_when>
    <thetext>*** Bug 162999 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607080</commentid>
    <comment_count>64</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2008-06-04 08:59:23 +0000</bug_when>
    <thetext>*** Bug 163185 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608199</commentid>
    <comment_count>65</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-06-06 18:02:58 +0000</bug_when>
    <thetext>*** Bug 163362 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608555</commentid>
    <comment_count>66</comment_count>
    <who name="Armin Berres">armin</who>
    <bug_when>2008-06-07 15:49:10 +0000</bug_when>
    <thetext>*** Bug 163338 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609304</commentid>
    <comment_count>67</comment_count>
    <who name="Camilla Boemann">cbo</who>
    <bug_when>2008-06-09 17:38:30 +0000</bug_when>
    <thetext>*** Bug 157243 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613565</commentid>
    <comment_count>68</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-06-19 17:29:01 +0000</bug_when>
    <thetext>*** Bug 164327 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>622664</commentid>
    <comment_count>69</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-07-09 17:03:41 +0000</bug_when>
    <thetext>Hi Sune - what happened with your k-c-d patch eventually? I seem to recall reading there were some complications? Is this bug solved now?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>622668</commentid>
    <comment_count>70</comment_count>
    <who name="Sune Vuorela">debian</who>
    <bug_when>2008-07-09 17:09:54 +0000</bug_when>
    <thetext>Hi Germain. It was committed some time ago in a quite different form after some discussions with especially dfaure.
http://websvn.kde.org/trunk/KDE/kdelibs/kdecore/kernel/kstandarddirs.cpp?r1=819551&amp;r2=819560

I don&apos;t know if it is solved in all cases though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>626812</commentid>
    <comment_count>71</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-07-19 17:43:14 +0000</bug_when>
    <thetext>*** Bug 166981 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640126</commentid>
    <comment_count>72</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2008-08-23 00:34:28 +0000</bug_when>
    <thetext>*** Bug 161659 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702977</commentid>
    <comment_count>73</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-01-20 00:08:36 +0000</bug_when>
    <thetext>*** Bug 173604 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702985</commentid>
    <comment_count>74</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-01-20 00:31:46 +0000</bug_when>
    <thetext>Seems my patch fixed it, since there&apos;s no post-4.1 duplicate of this issue (apart from gentoo where the kde3 prefix is allegedly put first in $KDEDIRS, which doesn&apos;t make sense for kde4 apps).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704957</commentid>
    <comment_count>75</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-01-24 15:58:55 +0000</bug_when>
    <thetext>*** Bug 175069 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705031</commentid>
    <comment_count>76</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-01-24 18:34:24 +0000</bug_when>
    <thetext>*** Bug 176686 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>755963</commentid>
    <comment_count>77</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2009-05-12 11:53:47 +0000</bug_when>
    <thetext>*** Bug 192419 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>755965</commentid>
    <comment_count>78</comment_count>
    <who name="Steven P. Ulrick">lists-kdedevel</who>
    <bug_when>2009-05-12 12:02:09 +0000</bug_when>
    <thetext>To Tommi Tervo:
This is an honest question: how exactly is https://bugs.kde.org/show_bug.cgi?id=192419 a duplicate of this (157850) bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>844773</commentid>
    <comment_count>79</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-10-14 03:45:44 +0000</bug_when>
    <thetext>*** Bug 210440 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>23870</attachid>
            <date>2008-03-12 00:17:47 +0000</date>
            <delta_ts>2008-03-12 00:17:47 +0000</delta_ts>
            <desc>Short test case (Qt only)</desc>
            <filename>transtest.cpp</filename>
            <type>text/x-c++src</type>
            <size>2308</size>
            <attacher name="Modestas Vainius">modax.reg</attacher>
            
              <data encoding="base64">I2luY2x1ZGUgPFF0Q29yZS9RVmFyaWFudD4KI2luY2x1ZGUgPFF0R3VpL1FBY3Rpb24+CiNpbmNs
dWRlIDxRdEd1aS9RQXBwbGljYXRpb24+CiNpbmNsdWRlIDxRdEd1aS9RQnV0dG9uR3JvdXA+CiNp
bmNsdWRlIDxRdEd1aS9RTGluZUVkaXQ+CiNpbmNsdWRlIDxRdEd1aS9RQ29tYm9Cb3g+CiNpbmNs
dWRlIDxRdEd1aS9RUHVzaEJ1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k7CiAgICAgICAgYnRuLT5tb3ZlKDQ1MCwgMjAwKTsKICAgICAgICBidG4tPnNldFRleHQoIkJ1
dHRvbiIpOwoKICAgICAgICAvLyBTZXQgYmFja2dyb3VuZCBjb2xvcnMKICAgICAgICBzZXRCZ0Nv
bG9yKCp0aGlzLCBRdDo6d2hpdGUpOwogICAgICAgIGNvbnN0IFFDb2xvciYgY29sb3IgPSBRQ29s
b3IoMCwwLDAsMCk7IC8vIFF0Ojp3aGl0ZTsKICAgICAgICBzZXRCZ0NvbG9yKCpsbjEsIGNvbG9y
KTsKICAgICAgICBzZXRCZ0NvbG9yKCpsbjIsIGNvbG9yKTsKICAgICAgICBzZXRCZ0NvbG9yKCpj
b21ibywgY29sb3IpOwogICAgICAgIHNldEJnQ29sb3IoKmJ0biwgY29sb3IpOwogICAgfTsKCn07
CgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpCnsKICAgIFFBcHBsaWNhdGlvbiBhcHAo
YXJnYywgYXJndik7CiAgICAKICAgIE1haW5XaW5kb3cgd2luOwogICAgd2luLnNob3coKTsKICAg
IAogICAgcmV0dXJuIGFwcC5leGVjKCk7Cn07Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24055</attachid>
            <date>2008-03-26 01:38:32 +0000</date>
            <delta_ts>2008-03-26 01:38:32 +0000</delta_ts>
            <desc>patch to use Base for 3d effects if Window is invalid</desc>
            <filename>inputcolor.patch</filename>
            <type>text/plain</type>
            <size>3175</size>
            <attacher name="Matthew Woehlke">mwoehlke.floss</attacher>
            
              <data encoding="base64">SW5kZXg6IG94eWdlbi5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gb3h5Z2VuLmNwcAkocmV2aXNpb24gNzkw
MTU2KQorKysgb3h5Z2VuLmNwcAkod29ya2luZyBjb3B5KQpAQCAtMTQzNSwxMCArMTQzNSwxMSBA
QAogICAgICAgICAgICAgICAgICAgICAvLyBidXQgdGhlIHNoYWRvdyBuZWVkcyB0byBiZSBjb2xv
cmVkIGFzIHRoZSBpbm5lciB3aWRnZXQ7IG5lZWRzCiAgICAgICAgICAgICAgICAgICAgIC8vIGNo
YW5nZXMgaW4gaGVscGVyLgogI2lmZGVmIEhPTEVfQ09MT1JfT1VUU0lERQotICAgICAgICAgICAg
ICAgICAgICByZW5kZXJIb2xlKHAsIHBhbC5jb2xvcihRUGFsZXR0ZTo6V2luZG93KSwgZnIsIGhh
c0ZvY3VzLCBtb3VzZU92ZXIpOwotI2Vsc2UKLSAgICAgICAgICAgICAgICAgICAgcmVuZGVySG9s
ZShwLCBpbnB1dENvbG9yLCBmciwgaGFzRm9jdXMsIG1vdXNlT3Zlcik7CisgICAgICAgICAgICAg
ICAgICAgIGlmIChwYWwuY29sb3IoUVBhbGV0dGU6OldpbmRvdykuaXNWYWxpZCgpKQorICAgICAg
ICAgICAgICAgICAgICAgICAgcmVuZGVySG9sZShwLCBwYWwuY29sb3IoUVBhbGV0dGU6OldpbmRv
dyksIGZyLCBoYXNGb2N1cywgbW91c2VPdmVyKTsKKyAgICAgICAgICAgICAgICAgICAgZWxzZQog
I2VuZGlmCisgICAgICAgICAgICAgICAgICAgICAgICByZW5kZXJIb2xlKHAsIGlucHV0Q29sb3Is
IGZyLCBoYXNGb2N1cywgbW91c2VPdmVyKTsKICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwog
ICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICBjYXNlIFNwaW5Cb3g6OkVkaXRGaWVs
ZDoKQEAgLTE0OTIsMjQgKzE0OTMsMjkgQEAKICAgICAgICAgICAgICAgICAgICAgICAgIHAtPnJl
c3RvcmUoKTsKIAogI2lmZGVmIEhPTEVfQ09MT1JfT1VUU0lERQotICAgICAgICAgICAgICAgICAg
ICAgICAgaWYgKGhhc0ZvY3VzICYmIGVuYWJsZWQpCisgICAgICAgICAgICAgICAgICAgICAgICBp
ZiAocGFsLmNvbG9yKFFQYWxldHRlOjpXaW5kb3cpLmlzVmFsaWQoKSkKICAgICAgICAgICAgICAg
ICAgICAgICAgIHsKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW5kZXJIb2xlKHAsIHBh
bC5jb2xvcihRUGFsZXR0ZTo6V2luZG93KSwgZnIsIHRydWUsIG1vdXNlT3Zlcik7CisgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgaWYgKGhhc0ZvY3VzICYmIGVuYWJsZWQpCisgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgeworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW5k
ZXJIb2xlKHAsIHBhbC5jb2xvcihRUGFsZXR0ZTo6V2luZG93KSwgZnIsIHRydWUsIG1vdXNlT3Zl
cik7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIGVsc2UKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICB7CisgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIHJlbmRlckhvbGUocCwgcGFsLmNvbG9yKFFQYWxldHRlOjpXaW5k
b3cpLCBmciwgZmFsc2UsIG1vdXNlT3Zlcik7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAg
fQogICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgZWxz
ZQorI2VuZGlmCiAgICAgICAgICAgICAgICAgICAgICAgICB7Ci0gICAgICAgICAgICAgICAgICAg
ICAgICAgICAgcmVuZGVySG9sZShwLCBwYWwuY29sb3IoUVBhbGV0dGU6OldpbmRvdyksIGZyLCBm
YWxzZSwgbW91c2VPdmVyKTsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaGFzRm9j
dXMgJiYgZW5hYmxlZCkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICB7CisgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIHJlbmRlckhvbGUocCwgaW5wdXRDb2xvciwgZnIsIHRydWUs
IG1vdXNlT3Zlcik7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAg
ICAgICAgICAgICAgICAgIGVsc2UKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICB7CisgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbmRlckhvbGUocCwgaW5wdXRDb2xvciwgZnIs
IGZhbHNlLCBtb3VzZU92ZXIpOworICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAg
ICAgICAgICAgICAgICAgICAgIH0KLSNlbHNlCi0gICAgICAgICAgICAgICAgICAgICAgICBpZiAo
aGFzRm9jdXMgJiYgZW5hYmxlZCkKLSAgICAgICAgICAgICAgICAgICAgICAgIHsKLSAgICAgICAg
ICAgICAgICAgICAgICAgICAgICByZW5kZXJIb2xlKHAsIGlucHV0Q29sb3IsIGZyLCB0cnVlLCBt
b3VzZU92ZXIpOwotICAgICAgICAgICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgICAgICAg
ICAgICAgZWxzZQotICAgICAgICAgICAgICAgICAgICAgICAgewotICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIHJlbmRlckhvbGUocCwgaW5wdXRDb2xvciwgZnIsIGZhbHNlLCBtb3VzZU92ZXIp
OwotICAgICAgICAgICAgICAgICAgICAgICAgfQotI2VuZGlmCiAgICAgICAgICAgICAgICAgICAg
IH0KIAogICAgICAgICAgICAgICAgICAgICByZXR1cm47CkBAIC0xNjE0LDcgKzE2MjAsOCBAQAog
ICAgICAgICAgICAgICAgICAgICBjb25zdCBib29sIGlzRW5hYmxlZCA9IGZsYWdzICYgU3RhdGVf
RW5hYmxlZDsKICAgICAgICAgICAgICAgICAgICAgY29uc3QgYm9vbCBoYXNGb2N1cyA9IGZsYWdz
ICYgU3RhdGVfSGFzRm9jdXM7CiAjaWZkZWYgSE9MRV9DT0xPUl9PVVRTSURFCi0gICAgICAgICAg
ICAgICAgICAgIGNvbnN0IFFDb2xvciBpbnB1dENvbG9yID0gIHBhbC5jb2xvcihRUGFsZXR0ZTo6
V2luZG93KTsKKyAgICAgICAgICAgICAgICAgICAgY29uc3QgUUNvbG9yIGlucHV0Q29sb3IgPSBw
YWwuY29sb3IoUVBhbGV0dGU6OldpbmRvdykuaXNWYWxpZCgpCisgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBwYWwuY29sb3IoUVBhbGV0dGU6OldpbmRvdykg
OiBwYWwuY29sb3IoUVBhbGV0dGU6OkJhc2UpOwogI2Vsc2UKICAgICAgICAgICAgICAgICAgICAg
Y29uc3QgUUNvbG9yIGlucHV0Q29sb3IgPSBlbmFibGVkP3BhbC5jb2xvcihRUGFsZXR0ZTo6QmFz
ZSk6cGFsLmNvbG9yKFFQYWxldHRlOjpXaW5kb3cpOwogI2VuZGlmCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24840</attachid>
            <date>2008-05-19 03:53:07 +0000</date>
            <delta_ts>2008-05-19 03:53:07 +0000</delta_ts>
            <desc>Transparent background fix</desc>
            <filename>khtml_render.diff</filename>
            <type>text/plain</type>
            <size>1787</size>
            <attacher name="Sergey Saukh">thelich</attacher>
            
              <data encoding="base64">LS0tIGtodG1sL3JlbmRlcmluZy9yZW5kZXJfcmVwbGFjZWQuY3BwLm9yaWcJMjAwOC0wNS0xMiAx
MToyMDozNy4wMDAwMDAwMDAgKzA3MDAKKysrIGtodG1sL3JlbmRlcmluZy9yZW5kZXJfcmVwbGFj
ZWQuY3BwCTIwMDgtMDUtMTkgMDg6NDc6MjEuMDAwMDAwMDAwICswNzAwCkBAIC0zNjAsMjUgKzM2
MCwyNCBAQAogICAgICAgICBRQ29sb3IgY29sb3IgPSBzdHlsZSgpLT5jb2xvcigpOwogICAgICAg
ICBRQ29sb3IgYmFja2dyb3VuZENvbG9yID0gc3R5bGUoK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CkqMTYvMTA7
CiAgICAgICAgICAgICBpbnQgbG93bGlnaHRWYWwgPSAxMDAgKyAoMipjb250cmFzdF8rNCkqMTA7
CiAgICAgICAgICAgICBib29sIHNob3VsZENoYW5nZUJnUGFsID0gdHJ1ZTsKIAotICAgICAgICAg
ICAgaWYgKCFiYWNrZ3JvdW5kQ29sb3IuaXNWYWxpZCgpKSAKLSAgICAgICAgICAgICAgICBiYWNr
Z3JvdW5kQ29sb3IgPSBwYWwuY29sb3IoIHdpZGdldCgpLT5iYWNrZ3JvdW5kUm9sZSgpICk7Ci0g
ICAgICAgICAgICBlbHNlCisgICAgICAgICAgICBpZiAoIXN0eWxlKCktPmh0bWxIYWNrcygpKSAK
ICAgICAgICAgICAgICAgICBzaG91bGRDaGFuZ2VCZ1BhbCA9ICEoIChiYWNrZ3JvdW5kQ29sb3Ig
PT0gY29sb3JGb3JDU1NWYWx1ZShDU1NfVkFMX1dJTkRPVykpIHx8CiAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAoYmFja2dyb3VuZENvbG9yID09IGNvbG9yRm9yQ1NTVmFs
dWUoQ1NTX1ZBTF9CVVRUT05GQUNFKSkgKTsKKwogICAgICAgICAgICAgaWYgKHNob3VsZENoYW5n
ZUJnUGFsIHx8IHRyYW5zKSB7CiAgICAgICAgICAgICAgICAgcGFsLnNldENvbG9yKHdpZGdldCgp
LT5iYWNrZ3JvdW5kUm9sZSgpLCB0cmFucyA/IFFDb2xvcigwLDAsMCwwKSA6IGJhY2tncm91bmRD
b2xvcik7CiAgICAgICAgICAgICAgICAgZm9yICggaW50IGkgPSAwOyBpIDwgUVBhbGV0dGU6Ok5D
b2xvckdyb3VwczsgKytpICkgewo=
</data>

          </attachment>
      

    </bug>

</bugzilla>