RenderView::availableLogicalHeight() should be self-contained.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Aug 2013 15:29:10 +0000 (15:29 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Aug 2013 15:29:10 +0000 (15:29 +0000)
commit4c4dc867b6c2a4ff2efd06be877d9060f8e2e7f5
tree8b49033c908aa946e77da71f47c8e3cbe0ecbb8a
parent1864fd841221e2f9cec3d55d02635184f2acffbb
RenderView::availableLogicalHeight() should be self-contained.
<https://webkit.org/b/120356>

Reviewed by Antti Koivisto.

Instead of checking isRenderView() in RenderBox::availableLogicalHeightUsing()
and doing an early return, do everything needed without leaving RenderView instead.
Document style never has min-/max-height so there's no need to apply constraints.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::availableLogicalHeightUsing):
* rendering/RenderView.cpp:
(WebCore::RenderView::availableLogicalHeight):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp
Source/WebCore/rendering/RenderView.cpp