Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1464)

Unified Diff: third_party/WebKit/WebCore/rendering/RenderTableSection.cpp

Issue 9738: Backport http://trac.webkit.org/changeset/36683 to the release ... (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_official_branch/src/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/fast/table/empty-row-crash.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/rendering/RenderTableSection.cpp
===================================================================
--- third_party/WebKit/WebCore/rendering/RenderTableSection.cpp (revision 5091)
+++ third_party/WebKit/WebCore/rendering/RenderTableSection.cpp (working copy)
@@ -170,7 +170,7 @@
m_grid.grow(numRows);
}
m_gridRows = numRows;
- int nCols = table()->numEffCols();
+ int nCols = max(1, table()->numEffCols());
CellStruct emptyCellStruct;
emptyCellStruct.cell = 0;
emptyCellStruct.inColSpan = false;
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/fast/table/empty-row-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698