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.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139548 268f45cc-cd09-0410-ab3c-d52691b4dbfc