Changeset 145822 in webkit


Ignore:
Timestamp:
Mar 14, 2013 10:01:44 AM (11 years ago)
Author:
robert@webkit.org
Message:

REGRESSION(r145305) Performance: 1.3% mac-release-10.6-webkit-latest/intl2/times/t change after rev 145300
https://bugs.webkit.org/show_bug.cgi?id=112125

Reviewed by Julien Chaffraix.

When detecting cases where a loaded image may need to move up into the padding created by the row's baseline
we don't need to do anything if the row doesn't have a baseline yet.

  • rendering/RenderTableCell.cpp:

(WebCore::RenderTableCell::layout):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r145820 r145822  
     12013-03-14  Robert Hogan  <robert@webkit.org>
     2
     3        REGRESSION(r145305) Performance: 1.3% mac-release-10.6-webkit-latest/intl2/times/t change after rev 145300
     4        https://bugs.webkit.org/show_bug.cgi?id=112125
     5
     6        Reviewed by Julien Chaffraix.
     7
     8        When detecting cases where a loaded image may need to move up into the padding created by the row's baseline
     9        we don't need to do anything if the row doesn't have a baseline yet.
     10
     11        * rendering/RenderTableCell.cpp:
     12        (WebCore::RenderTableCell::layout):
     13
    1142013-03-14  Brady Eidson  <beidson@apple.com>
    215
  • trunk/Source/WebCore/rendering/RenderTableCell.cpp

    r145596 r145822  
    252252    // of them wrong. So if our content's intrinsic height has changed push the new content up into the intrinsic padding and relayout so that the rest of
    253253    // table and row layout can use the correct baseline and height for this cell.
    254     if (isBaselineAligned() && cellBaselinePosition() > section()->rowBaseline(rowIndex())) {
     254    if (isBaselineAligned() && section()->rowBaseline(rowIndex()) && cellBaselinePosition() > section()->rowBaseline(rowIndex())) {
    255255        int newIntrinsicPaddingBefore = max<LayoutUnit>(0, intrinsicPaddingBefore() - max<LayoutUnit>(0, cellBaselinePosition() - oldCellBaseline));
    256256        setIntrinsicPaddingBefore(newIntrinsicPaddingBefore);
Note: See TracChangeset for help on using the changeset viewer.