<?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>280445</bug_id>
          
          <creation_ts>2011-08-19 21:09:03 +0000</creation_ts>
          <short_desc>left/right padding not applied to input text</short_desc>
          <delta_ts>2012-05-09 10:25:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml forms</component>
          <version>4.7.3</version>
          <rep_platform>Unlisted Binaries</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Iacovitti">aiacovitti</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          
          
          <cf_commitlink>http://commits.kde.org/kdelibs/658759cb7c436af133b770bc50c99219dff10814</cf_commitlink>
          <cf_versionfixedin>4.8.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1155393</commentid>
    <comment_count>0</comment_count>
      <attachid>62987</attachid>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2011-08-19 21:09:03 +0000</bug_when>
    <thetext>Created attachment 62987
testcase

Version:           4.7.0
OS:                Linux

khtml doesn&apos;t render input text with specified left/right padding

Reproducible: Always

Steps to Reproduce:
Load the testcase


Expected Results:  
:)

It seems KHTMLProxyStyle is broken here (patch):

+++ render_form.cpp
@@ -101,7 +101,7 @@
                 SubElement element, const QStyleOption *option, const QWidget *widget
             ) const
         {
-            QRect r = proxy()-&gt;subElementRect(element, option, widget);
+            QRect r = style()-&gt;subElementRect(element, option, widget);
             switch (element) {
               case QStyle::SE_PushButtonContents:
               case QStyle::SE_LineEditContents:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1247775</commentid>
    <comment_count>1</comment_count>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2012-04-20 06:20:36 +0000</bug_when>
    <thetext>Git commit dee2801c0a86fec1c642da9710b17b0a7bec3ecd by Andrea Iacovitti.
Committed on 20/04/2012 at 08:18.
Pushed by aiacovitti into branch &apos;KDE/4.8&apos;.

Fix rendering of text input elements having padding by removing the use
of cached parent&apos;s proxy style, that end up to return a wrong content rect
size, and using ad-hoc style() function instead. Actually only KLineEdit
inherits KdeUiProxyStyle (since kde 4.5) so the behavior of our internal
proxy is unchanged for the other form elements (i.e m_proxy was always 0 for them).

Also the crash reported in #197270 is no longer reproducible after this change,
likely it has been fixed elsewhere...
Related: bug 280226
FIXED-IN: 4.8.3

M  +7    -11   khtml/rendering/render_form.cpp

http://commits.kde.org/kdelibs/dee2801c0a86fec1c642da9710b17b0a7bec3ecd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1253427</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Čukić">ivan.cukic</who>
    <bug_when>2012-05-09 10:25:32 +0000</bug_when>
    <thetext>Git commit 658759cb7c436af133b770bc50c99219dff10814 by Ivan Čukić, on behalf of Andrea Iacovitti.
Committed on 20/04/2012 at 08:18.
Pushed by ivan into branch &apos;ivan/plasma-active-patches&apos;.

Fix rendering of text input elements having padding by removing the use
of cached parent&apos;s proxy style, that end up to return a wrong content rect
size, and using ad-hoc style() function instead. Actually only KLineEdit
inherits KdeUiProxyStyle (since kde 4.5) so the behavior of our internal
proxy is unchanged for the other form elements (i.e m_proxy was always 0 for them).

Also the crash reported in #197270 is no longer reproducible after this change,
likely it has been fixed elsewhere...
Related: bug 280226
FIXED-IN: 4.8.3

M  +7    -11   khtml/rendering/render_form.cpp

http://commits.kde.org/kdelibs/658759cb7c436af133b770bc50c99219dff10814</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>62987</attachid>
            <date>2011-08-19 21:09:03 +0000</date>
            <delta_ts>2011-08-19 21:09:03 +0000</delta_ts>
            <desc>testcase</desc>
            <filename>inppad_tc.html</filename>
            <type>text/html</type>
            <size>162</size>
            <attacher name="Andrea Iacovitti">aiacovitti</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGJvZHk+CiAgKGxlZnQvcmlnaHQgcGFkZGluZyBub3QgYXBwbGllZCk8YnIgLz4K
ICBpbnB1dCB0ZXh0IHdpdGggPGk+cGFkZGluZzoyMHB4PC9pPgogIDxwPgogIDxpbnB1dCB0eXBl
PSJ0ZXh0IiBzdHlsZT0icGFkZGluZzoyMHB4Ii8+CiAgPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>