Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Jan 2006 20:32:36 +0000 (20:32 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Jan 2006 20:32:36 +0000 (20:32 +0000)
commit27fd418e86a541f78aa71b33da7408913b6b5c7b
tree90c291c5c940ef23a232f3891234ad4c8c081e4d
parent8e3c16c40481385dfacb93db9afa54a1a9a1195b
    Reviewed by Darin.

       - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3702
         Web page is laid out incorrectly after printing with print-specific style sheet.

        Also replaced tabs with spaces in the changed files.

        Test cases:
        * fast/table/append-cells.html
        * fast/table/append-cells2.html
        * fast/table/remove-td-display-none.html

        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::recalcSections): Shrink columns and columnPos to the
          actual number of columns.

        * rendering/RenderTableSection.cpp:
        (WebCore::RenderTableSection::numColumns): New function.
        (WebCore::RenderTableSection::dump): Use gridRows instead of grid.size() for row count,
          preventing crashes.

        * rendering/RenderTableSection.h: Added numColumns() and a comment about cCol/cRow.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/table/append-cells-expected.checksum [new file with mode: 0644]
LayoutTests/fast/table/append-cells-expected.png [new file with mode: 0644]
LayoutTests/fast/table/append-cells-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/append-cells.html [new file with mode: 0644]
LayoutTests/fast/table/append-cells2-expected.checksum [new file with mode: 0644]
LayoutTests/fast/table/append-cells2-expected.png [new file with mode: 0644]
LayoutTests/fast/table/append-cells2-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/append-cells2.html [new file with mode: 0644]
LayoutTests/fast/table/remove-td-display-none-expected.checksum [new file with mode: 0644]
LayoutTests/fast/table/remove-td-display-none-expected.png [new file with mode: 0644]
LayoutTests/fast/table/remove-td-display-none-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/remove-td-display-none.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderTable.cpp
WebCore/rendering/RenderTableSection.cpp
WebCore/rendering/RenderTableSection.h