| 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 99186c69ceaf060c2e7c582da5ed669512d8b6fe..5d15de97af4e9dd795ab6bd52d0b67fc7ea40785 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -837,6 +837,12 @@ class ComputedStyle : public ComputedStyleBase,
|
| }
|
| TouchAction GetTouchAction() const { return TouchActionInternal(); }
|
| void SetTouchAction(TouchAction t) { return SetTouchActionInternal(t); }
|
| + TouchAction GetEffectiveTouchAction() const {
|
| + return EffectiveTouchActionInternal();
|
| + }
|
| + void SetEffectiveTouchAction(TouchAction t) {
|
| + return SetEffectiveTouchActionInternal(t);
|
| + }
|
|
|
| // vertical-align
|
| static EVerticalAlign InitialVerticalAlign() {
|
| @@ -1995,6 +2001,36 @@ class ComputedStyle : public ComputedStyleBase,
|
| OverflowY() == EOverflow::kWebkitPagedY;
|
| }
|
|
|
| + bool IsDisplayTableRowOrColumnType() const {
|
| + return Display() == EDisplay::kTableRow ||
|
| + Display() == EDisplay::kTableRowGroup ||
|
| + Display() == EDisplay::kTableColumn ||
|
| + Display() == EDisplay::kTableColumnGroup;
|
| + }
|
| +
|
| + bool HasAutoHorizontalScroll() const {
|
| + return OverflowX() == EOverflow::kAuto ||
|
| + OverflowX() == EOverflow::kOverlay;
|
| + }
|
| +
|
| + bool HasAutoVerticalScroll() const {
|
| + return OverflowY() == EOverflow::kAuto ||
|
| + OverflowY() == EOverflow::kWebkitPagedY ||
|
| + OverflowY() == EOverflow::kOverlay;
|
| + }
|
| +
|
| + bool ScrollsOverflowX() const {
|
| + return OverflowX() == EOverflow::kScroll || HasAutoHorizontalScroll();
|
| + }
|
| +
|
| + bool ScrollsOverflowY() const {
|
| + return OverflowY() == EOverflow::kScroll || HasAutoVerticalScroll();
|
| + }
|
| +
|
| + bool ScrollsOverflow() const {
|
| + return ScrollsOverflowX() || ScrollsOverflowY();
|
| + }
|
| +
|
| // Visibility utility functions.
|
| bool VisibleToHitTesting() const {
|
| return Visibility() == EVisibility::kVisible &&
|
|
|