From kde-commits Tue Mar 29 01:50:39 2005 From: Germain Garand Date: Tue, 29 Mar 2005 01:50:39 +0000 To: kde-commits Subject: kdelibs/khtml/html Message-Id: <20050329015039.B16E7630 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111206105405302 CVS commit by ggarand: remove CSS border properties when our image's border attribute translates to zero. BUG: 88727 M +6 -0 html_imageimpl.cpp 1.151 --- kdelibs/khtml/html/html_imageimpl.cpp #1.150:1.151 @@ -99,4 +99,10 @@ void HTMLImageElementImpl::parseAttribut addCSSProperty( CSS_PROP_BORDER_BOTTOM_STYLE, CSS_VAL_SOLID ); addCSSProperty( CSS_PROP_BORDER_LEFT_STYLE, CSS_VAL_SOLID ); + } else { + removeCSSProperty( CSS_PROP_BORDER_WIDTH ); + removeCSSProperty( CSS_PROP_BORDER_TOP_STYLE ); + removeCSSProperty( CSS_PROP_BORDER_RIGHT_STYLE ); + removeCSSProperty( CSS_PROP_BORDER_BOTTOM_STYLE ); + removeCSSProperty( CSS_PROP_BORDER_LEFT_STYLE ); } break;