diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-11 08:41:57 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-11 08:41:57 -0800 |
commit | f84950ed043a9a6a88b154b77590d15a5fc1c680 (patch) | |
tree | 17f836efdb0aed78b1230a758cd3a6da5819d5b2 /WebCore | |
parent | 213584b6466c1086f625ca0408b64ca225f830ad (diff) | |
parent | 6efdd45361af193e40ab63094028fd0ba996dcb3 (diff) | |
download | external_webkit-f84950ed043a9a6a88b154b77590d15a5fc1c680.zip external_webkit-f84950ed043a9a6a88b154b77590d15a5fc1c680.tar.gz external_webkit-f84950ed043a9a6a88b154b77590d15a5fc1c680.tar.bz2 |
Merge change I6efdd453 into eclair-mr2
* changes:
Fix the crash in RenderTableSection for Small Screen rendering. The code path was not exercised in the Browser and the crash was triggered by the WebKit integration.
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/rendering/RenderTableSection.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/WebCore/rendering/RenderTableSection.cpp b/WebCore/rendering/RenderTableSection.cpp index 9339f9e..5052c3a 100644 --- a/WebCore/rendering/RenderTableSection.cpp +++ b/WebCore/rendering/RenderTableSection.cpp @@ -324,8 +324,13 @@ int RenderTableSection::calcRowHeight() ASSERT(!needsLayout()); #ifdef ANDROID_LAYOUT - if (table()->isSingleColumn()) - return m_rowPos[m_gridRows]; + if (table()->isSingleColumn()) { + int height = 0; + int spacing = table()->vBorderSpacing(); + for (int r = 0; r < m_gridRows; r++) + height += m_grid[r].height.calcMinValue(0) + (m_grid[r].rowRenderer ? spacing : 0); + return height; + } #endif RenderTableCell* cell; |