Skip to content
  • eae@chromium.org's avatar
    Revert TableSection cell and border calculations to integers · 351bc646
    eae@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=77918
    
    Reviewed by Eric Seidel.
    
    Change RenderTableSection cell width, row height and border calculations
    back to use integers. Table layout is done on integer bounds to comply
    with the specification and to ensure that columns given the same width,
    including percentage widths, are rendered with identical widths. The same
    applies to heights.
    
    No new tests.
    
    * rendering/RenderTableSection.cpp:
    (WebCore::RenderTableSection::setCellLogicalWidths):
    (WebCore::RenderTableSection::calcRowLogicalHeight):
    (WebCore::RenderTableSection::layoutRows):
    (WebCore::RenderTableSection::calcOuterBorderBefore):
    (WebCore::RenderTableSection::calcOuterBorderAfter):
    (WebCore::RenderTableSection::calcOuterBorderStart):
    (WebCore::RenderTableSection::calcOuterBorderEnd):
    (WebCore::RenderTableSection::paintObject):
    (WebCore::RenderTableSection::nodeAtPoint):
    * rendering/RenderTableSection.h:
    (RenderTableSection):
    (WebCore::RenderTableSection::RowStruct::RowStruct):
    (WebCore::RenderTableSection::outerBorderBefore):
    (WebCore::RenderTableSection::outerBorderAfter):
    (WebCore::RenderTableSection::outerBorderStart):
    (WebCore::RenderTableSection::outerBorderEnd):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    351bc646