Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2916563003: Compute effective touch action in StyleAdjuster. (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c2a551b15a44f95a4cdaacdb103c059ad928c7e6..b0785f581b69fde47d4e34d1a42f7bf248e8031d 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -814,6 +814,12 @@ class ComputedStyle : public ComputedStyleBase,
static TouchAction InitialTouchAction() {
return TouchAction::kTouchActionAuto;
}
+ TouchAction GetEffectiveTouchAction() const {
+ return EffectiveTouchActionInternal();
+ }
+ void SetEffectiveTouchAction(TouchAction t) {
+ return SetEffectiveTouchActionInternal(t);
+ }
// vertical-align
static EVerticalAlign InitialVerticalAlign() {
@@ -1970,6 +1976,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 &&
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698