| 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 f685e1334d340973b091f0dee7305a9fde70618b..961058bc971652f3943c34e9b438744279055798 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -3027,8 +3027,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
|
| GetPosition() == EPosition::kSticky;
|
| }
|
| bool HasViewportConstrainedPosition() const {
|
| - return GetPosition() == EPosition::kFixed ||
|
| - GetPosition() == EPosition::kSticky;
|
| + return GetPosition() == EPosition::kFixed;
|
| + }
|
| + bool HasStickyConstrainedPosition() const {
|
| + return GetPosition() == EPosition::kSticky &&
|
| + (!Top().IsAuto() || !Left().IsAuto() || !Right().IsAuto() ||
|
| + !Bottom().IsAuto());
|
| }
|
|
|
| // Clip utility functions.
|
|
|