| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 7e63fe333b7890e7e5c48a84f0ad34a67eb493fb..f60375f6c683c1d4b275c218ae8a1715967072b0 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -2699,9 +2699,9 @@ static void computeInlineStaticDistance(Length& logicalLeft, Length& logicalRigh
|
| } else if (curr->isInline()) {
|
| if (curr->isRelPositioned()) {
|
| if (!curr->style()->logicalLeft().isAuto())
|
| - staticPosition += curr->style()->logicalLeft().value();
|
| + staticPosition += valueForLength(curr->style()->logicalLeft(), curr->containingBlock()->availableWidth());
|
| else
|
| - staticPosition -= curr->style()->logicalRight().value();
|
| + staticPosition -= valueForLength(curr->style()->logicalRight(), curr->containingBlock()->availableWidth());
|
| }
|
| }
|
| }
|
| @@ -2721,9 +2721,9 @@ static void computeInlineStaticDistance(Length& logicalLeft, Length& logicalRigh
|
| } else if (curr->isInline()) {
|
| if (curr->isRelPositioned()) {
|
| if (!curr->style()->logicalLeft().isAuto())
|
| - staticPosition -= curr->style()->logicalLeft().value();
|
| + staticPosition -= valueForLength(curr->style()->logicalLeft(), curr->containingBlock()->availableWidth());
|
| else
|
| - staticPosition += curr->style()->logicalRight().value();
|
| + staticPosition += valueForLength(curr->style()->logicalRight(), curr->containingBlock()->availableWidth());
|
| }
|
| }
|
| if (curr == containerBlock)
|
|
|