2006-05-13 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Hyatt, landed by ap.
WebCore:
Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=7604
calcAbsoluteHorizontalValues() is being getting passed arguments
in the wrong order in calcAbsoluteHorizontal()
Cleans up the RenderBox code for absolutely positioned elements
and adds new functions for replaced absolutely positioned
elements. Now uses Length so that magic number -666666 for
auto lengths is no longer used.
* rendering/RenderBox.cpp:
(WebCore::RenderBox::calcAbsoluteHorizontal):
(WebCore::RenderBox::calcAbsoluteHorizontalValues):
(WebCore::RenderBox::calcAbsoluteVertical):
(WebCore::RenderBox::calcAbsoluteVerticalValues):
(WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Handle replaced
case separately.
(WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto.
* rendering/RenderBox.h:
LayoutTests:
* fast/block/positioning/absolute-length-of-neg-666666.html: Added.
* fast/block/positioning/absolute-positioned-overconstrained.html: Added.
* fast/block/positioning/auto/006.html: Updated to reflect that the containing
block's direction, not the parent's is used.
* fast/css/absolute-poition-in-rtl-parent.html: Updated and cleaned up.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14351
268f45cc-cd09-0410-ab3c-
d52691b4dbfc