| Index: third_party/WebKit/Source/core/style/ComputedStyle.h
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| index f65eff3634047a68b26a93060453eab516b77654..9fc57ab2fb7a18c0a1b36749a7ba33e944ab0e24 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -3124,7 +3124,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
|
| position() == EPosition::kSticky;
|
| }
|
| bool hasViewportConstrainedPosition() const {
|
| - return position() == EPosition::kFixed || position() == EPosition::kSticky;
|
| + return position() == EPosition::kFixed;
|
| + }
|
| + bool hasStickyConstrainedPosition() const {
|
| + return position() == EPosition::kSticky &&
|
| + (!top().isAuto() || !left().isAuto() || !right().isAuto() ||
|
| + !bottom().isAuto());
|
| }
|
|
|
| // Clip utility functions.
|
|
|