[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/rendering
From: Allan Sandfeld Jensen <kde () carewolf ! com>
Date: 2006-09-25 13:57:26
Message-ID: 1159192646.802949.1452.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 588278 by carewolf:
Don't mix canvas width and root margins.
BUG: 134304
BUG: 134051
M +1 -1 render_box.cpp
M +2 -4 render_canvas.cpp
--- branches/KDE/3.5/kdelibs/khtml/rendering/render_box.cpp #588277:588278
@@ -696,7 +696,7 @@
short RenderBox::containingBlockWidth() const
{
- if ((isCanvas()||isRoot()) && canvas()->view())
+ if (isCanvas() && canvas()->view())
{
if (canvas()->pagedMode())
return canvas()->width();
--- branches/KDE/3.5/kdelibs/khtml/rendering/render_canvas.cpp #588277:588278
@@ -109,9 +109,7 @@
return;
}
- m_width = m_view ?
- m_view->frameWidth() + paddingLeft() + paddingRight() + borderLeft() \
+ borderRight()
- : m_minWidth;
+ m_width = m_view ? m_view->frameWidth() : m_minWidth;
if (style()->marginLeft().isFixed())
m_marginLeft = style()->marginLeft().value();
@@ -720,7 +718,7 @@
RenderObject *fc = firstChild();
if(fc) {
// ow: like effectiveWidth() but without the negative
- const int ow = hasOverflowClip() ? width() : overflowWidth();
+ const int ow = fc->hasOverflowClip() ? fc->width() : fc->overflowWidth();
int dw = ow + fc->marginLeft() + fc->marginRight();
int rightmostPos = fc->rightmostPosition(false);
// kdDebug(6040) << "w " << w << " rightmostPos " << rightmostPos << " dw " << dw << \
" fc->rw " << fc->effectiveWidth() << " fc->width() " << fc->width() << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic