SVN commit 618865 by ggarand: backport 618852. M +1 -1 render_box.cpp M +1 -0 render_table.h --- branches/KDE/3.5/kdelibs/khtml/rendering/render_box.cpp #618864:618865 @@ -707,7 +707,7 @@ } RenderBlock* cb = containingBlock(); - if (isRenderBlock() && cb->isTable()) { + if (isRenderBlock() && cb->isTable() && static_cast(cb)->caption() == this) { //captions are not affected by table border or padding return cb->width(); } --- branches/KDE/3.5/kdelibs/khtml/rendering/render_table.h #618864:618865 @@ -162,6 +162,7 @@ CollapsedBorderValue* currentBorderStyle() { return m_currentBorder; } RenderTableSection *firstBodySection() const { return firstBody; } + RenderFlow* caption() const { return tCaption; } protected: