Fix rendering of text input elements having padding by removing the use
author Andrea Iacovitti
()
committer Andrea Iacovitti
()
commit dee2801c0a86fec1c642da9710b17b0a7bec3ecd
tree 3ccde7cdf91f0661746980ec4101fb7b61a3ca80
parent fc7b021433bba347fffeab15c4be5f1a26b8fa74
Fix rendering of text input elements having padding by removing the use
of cached parent'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...

BUGS: 280445, 280226
FIXED-IN: 4.8.3
khtml/rendering/render_form.cpp