Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index ecf56523406d81926d8ab38ceb3fe04ae5cb079c..3d7c1112016cb6275043de8ffe00cddbd21c66aa 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -1652,6 +1652,8 @@ LayoutUnit LayoutBox::containingBlockLogicalWidthForContent() const |
return overrideContainingBlockContentLogicalWidth(); |
LayoutBlock* cb = containingBlock(); |
+ if (isOutOfFlowPositioned()) |
+ return cb->clientLogicalWidth(); |
return cb->availableLogicalWidth(); |
} |