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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1422513006: Simplify TouchAction enum to be a simple bit flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix computed style / layout tests and CR feedback Created 5 years, 2 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
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 2ff804ebb0cef02fe89bcd33c78e41db630d25b3..a3da50e124ea7cb0b24d896ad3240194b60f76d5 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2845,7 +2845,7 @@ bool WebViewImpl::scrollFocusedNodeIntoRect(const WebRect& rectInViewport)
// zoom in if the user won't be able to zoom out. e.g if the textbox is within a
// touch-action: none container the user can't zoom back out.
TouchAction action = TouchActionUtil::computeEffectiveTouchAction(*element);
- if (action != TouchActionAuto && !(action & TouchActionPinchZoom))
+ if (!(action & TouchActionPinchZoom))
zoomInToLegibleScale = false;
}
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebTouchAction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698