Changeset 151554 in webkit


Ignore:
Timestamp:
Jun 13, 2013 9:49:20 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS Regions] Regions auto-height and absolute positioning bug
https://bugs.webkit.org/show_bug.cgi?id=111092

Patch by Anton Obzhirov <Anton Obzhirov> on 2013-06-13
Reviewed by David Hyatt.

During last layout that should update the auto-height regions new auto-height region height
is calculated correctly based on the text content, but it requires extra step
to reposition the render block after new logical height is set (correct logical height becomes
available only during last layout).

Tests: fast/regions/autoheight-abspos-bottom-align.html

  • rendering/RenderRegion.cpp:

(WebCore::RenderRegion::updateLogicalHeight):

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r151551 r151554  
     12013-06-13  Anton Obzhirov  <a.obzhirov@samsung.com>
     2
     3        [CSS Regions] Regions auto-height and absolute positioning bug
     4        https://bugs.webkit.org/show_bug.cgi?id=111092
     5
     6        Reviewed by David Hyatt.
     7
     8        During last layout that should update the auto-height regions new auto-height region height
     9        is calculated correctly based on the text content, but it requires extra step
     10        to reposition the render block after new logical height is set (correct logical height becomes
     11        available only during last layout).
     12
     13        Tests: fast/regions/autoheight-abspos-bottom-align.html
     14
     15        * rendering/RenderRegion.cpp:
     16        (WebCore::RenderRegion::updateLogicalHeight):
     17
    1182013-06-13  Brent Fulgham  <bfulgham@webkit.org>
    219
  • trunk/Source/WebCore/rendering/RenderRegion.cpp

    r151475 r151554  
    667667    LayoutUnit newLogicalHeight = overrideLogicalContentHeight() + borderAndPaddingLogicalHeight();
    668668    ASSERT(newLogicalHeight < LayoutUnit::max() / 2);
    669     if (newLogicalHeight > logicalHeight())
     669    if (newLogicalHeight > logicalHeight()) {
    670670        setLogicalHeight(newLogicalHeight);
     671        // Recalculate position of the render block after new logical height is set.
     672        // (needed in absolute positioning case with bottom alignment for example)
     673        RenderBlock::updateLogicalHeight();
     674    }
    671675}
    672676
Note: See TracChangeset for help on using the changeset viewer.