| 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 043e2233a9150af7460166166e09b755e054d71a..93c975263da28e0a382fe5b6661f34af8a4f9aa4 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -3148,7 +3148,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.
|
|
|