[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/khtml2/impl
From: John Tapsell <john.tapsell () kdemail ! net>
Date: 2005-06-01 18:43:45
Message-ID: 1117651425.899622.23903.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 420906 by johnflux:
Small clean up
M +11 -5 HTMLImageElementImpl.cc
--- trunk/kdenonbeta/khtml2/impl/HTMLImageElementImpl.cc #420905:420906
@@ -86,13 +86,16 @@
break;
case ATTR_BORDER:
// border="noborder" -> border="0"
- if(attr->value().toInt()) {
+ if(attr->value().toInt())
+ {
addCSSLength(CSS_PROP_BORDER_WIDTH, attr->value());
addCSSProperty( CSS_PROP_BORDER_TOP_STYLE, CSS_VAL_SOLID );
addCSSProperty( CSS_PROP_BORDER_RIGHT_STYLE, CSS_VAL_SOLID );
addCSSProperty( CSS_PROP_BORDER_BOTTOM_STYLE, CSS_VAL_SOLID );
addCSSProperty( CSS_PROP_BORDER_LEFT_STYLE, CSS_VAL_SOLID );
- } else {
+ }
+ else
+ {
removeCSSProperty( CSS_PROP_BORDER_WIDTH );
removeCSSProperty( CSS_PROP_BORDER_TOP_STYLE );
removeCSSProperty( CSS_PROP_BORDER_RIGHT_STYLE );
@@ -158,7 +161,8 @@
if(alt.isNull())
alt = getAttribute(ATTR_TITLE);
#if 0
- if(alt.isNull() ) {
+ if(alt.isNull() )
+ {
QString p = KURL( getDocument()->completeURL( getAttribute(ATTR_SRC).string() ) ).prettyURL();
int pos;
if(( pos = p.findRev( '.' ) ) > 0 )
@@ -196,7 +200,8 @@
if(!m_render) return getAttribute(ATTR_WIDTH).toInt();
// ### make a unified call for this
- if(changed()) {
+ if(changed())
+ {
getDocument()->updateRendering();
if(getDocument()->view())
getDocument()->view()->layout();
@@ -211,7 +216,8 @@
if(!m_render) return getAttribute(ATTR_HEIGHT).toInt();
// ### make a unified call for this
- if(changed()) {
+ if(changed())
+ {
getDocument()->updateRendering();
if(getDocument()->view())
getDocument()->view()->layout();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic