Index: Source/core/rendering/RenderBox.cpp |
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp |
index 040172a33d8eec668267888fdb603f808f30275f..aa800cb9f326b74814efcf646a7bf2e121bcd1d8 100644 |
--- a/Source/core/rendering/RenderBox.cpp |
+++ b/Source/core/rendering/RenderBox.cpp |
@@ -3329,7 +3329,6 @@ void RenderBox::computePositionedLogicalWidthUsing(Length logicalWidth, const Re |
RenderView* renderView = view(); |
LayoutUnit& marginLogicalLeftValue = style()->isLeftToRightDirection() ? computedValues.m_margins.m_start : computedValues.m_margins.m_end; |
LayoutUnit& marginLogicalRightValue = style()->isLeftToRightDirection() ? computedValues.m_margins.m_end : computedValues.m_margins.m_start; |
- |
if (!logicalLeftIsAuto && !logicalWidthIsAuto && !logicalRightIsAuto) { |
/*-----------------------------------------------------------------------*\ |
* If none of the three is 'auto': If both 'margin-left' and 'margin- |
@@ -3486,6 +3485,10 @@ void RenderBox::computePositionedLogicalWidthUsing(Length logicalWidth, const Re |
} |
} |
+ if (containerBlock->isBox() && toRenderBox(containerBlock)->scrollsOverflowY() && containerBlock->style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft()) { |
+ logicalLeftValue = logicalLeftValue + toRenderBox(containerBlock)->verticalScrollbarWidth(); |
+ } |
+ |
computedValues.m_position = logicalLeftValue + marginLogicalLeftValue; |
computeLogicalLeftPositionedOffset(computedValues.m_position, this, computedValues.m_extent, containerBlock, containerLogicalWidth); |
} |