Fix for 3365086, large tables crash Safari. Make sure to use ints rather than short...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Aug 2004 21:19:35 +0000 (21:19 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Aug 2004 21:19:35 +0000 (21:19 +0000)
commit55c5ddb25d36a138b93d65323985bc7a0587c6ec
tree6ede674a2476124e6236b953b32afe27c400205c
parentf45c33f7abc01c0a326a7268749bc26398fcab91
Fix for 3365086, large tables crash Safari.  Make sure to use ints rather than shorts for row and column
counts.  Also fix a pathological array resize scenario for tables as rows are added.

        Reviewed by darin

        * khtml/rendering/render_table.cpp:
        (RenderTable::splitColumn):
        (RenderTable::appendColumn):
        (RenderTableSection::RenderTableSection):
        (RenderTableSection::ensureRows):
        (RenderTableSection::setCellWidths):
        (RenderTableSection::calcRowHeight):
        (RenderTableSection::layoutRows):
        (RenderTableSection::paint):
        (RenderTableSection::recalcCells):
        (RenderTableSection::clearGrid):
        * khtml/rendering/render_table.h:
        (khtml::RenderTableSection::numRows):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_table.cpp
WebCore/khtml/rendering/render_table.h