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

Unified Diff: sky/engine/core/page/scrolling/ScrollingCoordinator.cpp

Issue 689283003: Remove scroll corners and resizers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/sky/engine/core/page/scrolling/ScrollingCoordinator.cpp b/sky/engine/core/page/scrolling/ScrollingCoordinator.cpp
index 338d49f4644a15a40021adc9943e32cafd1edacc..351c884758f8761ce9f32ec23f945bbcb3cbaf3c 100644
--- a/sky/engine/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/sky/engine/core/page/scrolling/ScrollingCoordinator.cpp
@@ -485,20 +485,6 @@ Region ScrollingCoordinator::computeShouldHandleScrollGestureOnMainThreadRegion(
}
}
- // We use GestureScrollBegin/Update/End for moving the resizer handle. So we mark these
- // small resizer areas as non-fast-scrollable to allow the scroll gestures to be passed to
- // main thread if they are targeting the resizer area. (Resizing is done in EventHandler.cpp
- // on main thread).
- if (const FrameView::ResizerAreaSet* resizerAreas = frameView->resizerAreas()) {
- for (FrameView::ResizerAreaSet::const_iterator it = resizerAreas->begin(), end = resizerAreas->end(); it != end; ++it) {
- RenderBox* box = *it;
- IntRect bounds = box->absoluteBoundingBoxRect();
- IntRect corner = box->layer()->scrollableArea()->touchResizerCornerRect(bounds);
- corner.moveBy(offset);
- shouldHandleScrollGestureOnMainThreadRegion.unite(corner);
- }
- }
-
return shouldHandleScrollGestureOnMainThreadRegion;
}
« no previous file with comments | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698