summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Iacovitti <aiacovitti@libero.it>2012-06-17 07:58:36 (GMT)
committerAndrea Iacovitti <aiacovitti@libero.it>2012-06-17 07:58:36 (GMT)
commite67682b44f30ee6d5a785dde34eb0dc16fb2c02e (patch)
tree00bbe873562b4ac09ede3266ee0b6f538e926ae1
parentd178c64d53fcc6ab50d35c4f178b21322b7fa357 (diff)
Combobox: fix css->native border restoring.
BUG: 302040
-rw-r--r--khtml/rendering/render_form.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/khtml/rendering/render_form.cpp b/khtml/rendering/render_form.cpp
index f6a5f55..47cb7a3 100644
--- a/khtml/rendering/render_form.cpp
+++ b/khtml/rendering/render_form.cpp
@@ -1730,9 +1730,9 @@ void RenderSelect::clearItemFlags(int index, Qt::ItemFlags flags)
void RenderSelect::setStyle(RenderStyle *_style)
{
RenderFormElement::setStyle(_style);
- if (!m_useListBox && shouldDisableNativeBorders()) {
+ if (!m_useListBox) {
KHTMLProxyStyle* proxyStyle = static_cast<KHTMLProxyStyle*>(getProxyStyle());
- proxyStyle->noBorder = true;
+ proxyStyle->noBorder = shouldDisableNativeBorders();
}
}