[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Patch for bug #200795
From: Andrea Iacovitti <aiacovitti () libero ! it>
Date: 2009-07-23 16:02:30
Message-ID: 200907231802.30457.aiacovitti () libero ! it
[Download RAW message or body]
Hi,
i wrote a small patch that solves http://bugs.kde.org/show_bug.cgi?id=200795
In that case khtml don't honour 'border:none' for input text widget and native
borders are drawn around.
Is the patch ok?
Thank you.
Regards,
Andrea.
["border-none-patch.diff" (border-none-patch.diff)]
--- khtml/rendering/render_replaced.cpp 2009-04-05 21:59:45.000000000 +0200
+++ khtml/rendering/render_replaced.cpp 2009-07-23 14:52:17.000000000 +0200
@@ -479,7 +479,13 @@
}
// Border:
- if (shouldPaintBorder())
+
+ bool borderNone = (style()->borderLeftStyle() == BNONE ||
+ style()->borderRightStyle() == BNONE ||
+ style()->borderTopStyle() == BNONE ||
+ style()->borderBottomStyle() == BNONE);
+
+ if (shouldPaintBorder() || borderNone)
{
if (QFrame* frame = qobject_cast<QFrame*>(m_widget))
frame->setFrameShape(QFrame::NoFrame);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic