From kde-commits Tue Jan 18 23:32:40 2011 From: Maks Orlovich Date: Tue, 18 Jan 2011 23:32:40 +0000 To: kde-commits Subject: KDE/kdelibs/khtml/css Message-Id: <20110118233240.3491CAC8B7 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129539359509120 SVN commit 1215524 by orlovich: Make sure we honor width: set on a button with display: inline. This is done by mutating it into inline-block (WebCore does that, but a lot more other stuff, too, which doesn't make sense here given our native-widgets approach). Fixes the star (so that's what the weird fancy character was) and loupe icons on google search results getting cutoff. M +7 -0 cssstyleselector.cpp --- trunk/KDE/kdelibs/khtml/css/cssstyleselector.cpp #1215523:1215524 @@ -899,6 +899,13 @@ } else style->setDisplay(BLOCK); + } else if (e && e->id() == ID_BUTTON && style->isOriginalDisplayInlineType()) { + //