| Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| index 147b402b61f2baf1db28ab5ecbf3072966e3cf74..7b09e9960b9f8555275f27766c7b7ee76408e06e 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| @@ -199,7 +199,7 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
|
| || style.hasFilter()
|
| || style.hasBlendMode()
|
| || style.hasIsolation()
|
| - || style.position() == FixedPosition
|
| + || style.hasViewportConstrainedPosition()
|
| || isInTopLayer(element, style)
|
| || hasWillChangeThatCreatesStackingContext(style)
|
| || style.containsPaint()))
|
| @@ -452,6 +452,12 @@ void StyleAdjuster::adjustStyleForDisplay(ComputedStyle& style, const ComputedSt
|
| && style.position() == RelativePosition)
|
| style.setPosition(StaticPosition);
|
|
|
| + // Cannot support position: sticky for table columns and column groups because current code is only doing
|
| + // background painting through columns / column groups
|
| + if ((style.display() == TABLE_COLUMN_GROUP || style.display() == TABLE_COLUMN)
|
| + && style.position() == StickyPosition)
|
| + style.setPosition(StaticPosition);
|
| +
|
| // writing-mode does not apply to table row groups, table column groups, table rows, and table columns.
|
| // FIXME: Table cells should be allowed to be perpendicular or flipped with respect to the table, though.
|
| if (style.display() == TABLE_COLUMN || style.display() == TABLE_COLUMN_GROUP || style.display() == TABLE_FOOTER_GROUP
|
|
|