Changeset 139548 in webkit


Ignore:
Timestamp:
Jan 12, 2013 4:59:55 AM (11 years ago)
Author:
robert@webkit.org
Message:

Available height should respect min and max height
https://bugs.webkit.org/show_bug.cgi?id=106479

Source/WebCore:

Reviewed by Ojan Vafai.

When calculating a relative positioned block's offset as a percentage of its container, respect the min
and max height set on the container

Tests: fast/block/percent-top-respects-max-height.html

fast/block/percent-top-respects-min-height.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::availableLogicalHeight):

LayoutTests:

Reviewed by Ojan Vafai.

  • fast/block/percent-top-respects-max-height-expected.txt: Added.
  • fast/block/percent-top-respects-max-height.html: Added.
  • fast/block/percent-top-respects-min-height-expected.txt: Added.
  • fast/block/percent-top-respects-min-height.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139547 r139548  
     12013-01-12  Robert Hogan  <robert@webkit.org>
     2
     3        Available height should respect min and max height
     4        https://bugs.webkit.org/show_bug.cgi?id=106479
     5
     6        Reviewed by Ojan Vafai.
     7
     8        * fast/block/percent-top-respects-max-height-expected.txt: Added.
     9        * fast/block/percent-top-respects-max-height.html: Added.
     10        * fast/block/percent-top-respects-min-height-expected.txt: Added.
     11        * fast/block/percent-top-respects-min-height.html: Added.
     12
    1132013-01-12  Victor Carbune  <victor@rosedu.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r139547 r139548  
     12013-01-12  Robert Hogan  <robert@webkit.org>
     2
     3        Available height should respect min and max height
     4        https://bugs.webkit.org/show_bug.cgi?id=106479
     5
     6        Reviewed by Ojan Vafai.
     7       
     8        When calculating a relative positioned block's offset as a percentage of its container, respect the min
     9        and max height set on the container
     10
     11        Tests: fast/block/percent-top-respects-max-height.html
     12               fast/block/percent-top-respects-min-height.html
     13
     14        * rendering/RenderBox.cpp:
     15        (WebCore::RenderBox::availableLogicalHeight):
     16
    1172013-01-12  Victor Carbune  <victor@rosedu.org>
    218
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r139535 r139548  
    26282628LayoutUnit RenderBox::availableLogicalHeight(AvailableLogicalHeightType heightType) const
    26292629{
    2630     return availableLogicalHeightUsing(style()->logicalHeight(), heightType);
     2630    return constrainLogicalHeightByMinMax(availableLogicalHeightUsing(style()->logicalHeight(), heightType));
    26312631}
    26322632
Note: See TracChangeset for help on using the changeset viewer.