| Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| index 0db1696ebac6d5ece0b2bdd6429af9e4831105f4..3f70ca65a76c0bda42619278cdd3744af9f26631 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| @@ -635,7 +635,7 @@ void LayoutBoxModelObject::updateStickyPositionConstraints() const
|
| LayoutBox* scrollAncestor = layer()->ancestorOverflowLayer()->isRootLayer() ? nullptr : toLayoutBox(layer()->ancestorOverflowLayer()->layoutObject());
|
|
|
| LayoutRect containerContentRect = containingBlock->layoutOverflowRect();
|
| - LayoutUnit maxContainerWidth = containingBlock->containingBlockLogicalWidthForContent();
|
| + LayoutUnit maxContainerWidth = containingBlock->isLayoutView() ? containingBlock->logicalWidth() : containingBlock->containingBlockLogicalWidthForContent();
|
| // Sticky positioned element ignore any override logical width on the containing block (as they don't call
|
| // containingBlockLogicalWidthForContent). It's unclear whether this is totally fine.
|
| // Compute the container-relative area within which the sticky element is allowed to move.
|
|
|