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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2664253002: Revert "Blink handle selection handle visibility" (Closed)
Patch Set: Created 3 years, 11 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: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index e6484ec89fb90556b4f7da7ece1b7629699b6e98..1cf9fc54829a1078171a800e162db971d5be9cdc 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -82,7 +82,6 @@ LayerTreeImpl::LayerTreeImpl(
needs_full_tree_sync_(true),
next_activation_forces_redraw_(false),
has_ever_been_drawn_(false),
- handle_visibility_changed_(false),
have_scroll_event_handlers_(false),
event_listener_properties_(),
browser_controls_shrink_blink_size_(false),
@@ -1995,19 +1994,9 @@ LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion(
}
void LayerTreeImpl::RegisterSelection(const LayerSelection& selection) {
- if (selection_ == selection)
- return;
-
- handle_visibility_changed_ = true;
selection_ = selection;
}
-bool LayerTreeImpl::GetAndResetHandleVisibilityChanged() {
- bool curr_handle_visibility_changed = handle_visibility_changed_;
- handle_visibility_changed_ = false;
- return curr_handle_visibility_changed;
-}
-
static gfx::SelectionBound ComputeViewportSelectionBound(
const LayerSelectionBound& layer_bound,
LayerImpl* layer,

Powered by Google App Engine
This is Rietveld 408576698