Changeset 120354 in webkit


Ignore:
Timestamp:
Jun 14, 2012 1:08:26 PM (12 years ago)
Author:
eae@chromium.org
Message:

Change RenderTableSection::calcRowLogicalHeight to round rather than floor height
https://bugs.webkit.org/show_bug.cgi?id=88813

Reviewed by Julien Chaffraix.

Source/WebCore:

Change RenderTableSection::calcRowLogicalHeight to round the
logicalHeight instead of flooring it. This matches our rounding logic
elsewhere and results in table rows better matching the expected height.

Test: fast/sub-pixel/table-rows-have-stable-height.html

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::calcRowLogicalHeight):

LayoutTests:

Add new test ensuring that rows are laid out the desired height when
given a height that maps to a device pixel value.

  • fast/sub-pixel/table-rows-have-stable-height-expected.txt: Added.
  • fast/sub-pixel/table-rows-have-stable-height.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r120350 r120354  
     12012-06-14  Emil A Eklund  <eae@chromium.org>
     2
     3        Change RenderTableSection::calcRowLogicalHeight to round rather than floor height
     4        https://bugs.webkit.org/show_bug.cgi?id=88813
     5
     6        Reviewed by Julien Chaffraix.
     7
     8        Add new test ensuring that rows are laid out the desired height when
     9        given a height that maps to a device pixel value.
     10
     11        * fast/sub-pixel/table-rows-have-stable-height-expected.txt: Added.
     12        * fast/sub-pixel/table-rows-have-stable-height.html: Added.
     13
    1142012-06-14  Zan Dobersek  <zandobersek@gmail.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r120347 r120354  
     12012-06-14  Emil A Eklund  <eae@chromium.org>
     2
     3        Change RenderTableSection::calcRowLogicalHeight to round rather than floor height
     4        https://bugs.webkit.org/show_bug.cgi?id=88813
     5
     6        Reviewed by Julien Chaffraix.
     7
     8        Change RenderTableSection::calcRowLogicalHeight to round the
     9        logicalHeight instead of flooring it. This matches our rounding logic
     10        elsewhere and results in table rows better matching the expected height.
     11
     12        Test: fast/sub-pixel/table-rows-have-stable-height.html
     13
     14        * rendering/RenderTableSection.cpp:
     15        (WebCore::RenderTableSection::calcRowLogicalHeight):
     16
    1172012-06-14  Andrey Adaikin  <aandrey@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r119967 r120354  
    334334
    335335        // Our base size is the biggest logical height from our cells' styles (excluding row spanning cells).
    336         m_rowPos[r + 1] = max(m_rowPos[r] + minimumIntValueForLength(m_grid[r].logicalHeight, 0, viewRenderer), 0);
     336        m_rowPos[r + 1] = max(m_rowPos[r] + minimumValueForLength(m_grid[r].logicalHeight, 0, viewRenderer).round(), 0);
    337337
    338338        Row& row = m_grid[r].row;
Note: See TracChangeset for help on using the changeset viewer.