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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed contextual search test function Created 4 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: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 9ae1138aa87c3ebd4c372037af0d5ae5597827cd..e0083466cf21847a3e50ecd520c0b7838d93ddee 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1975,6 +1975,12 @@ LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion(
}
void LayerTreeImpl::RegisterSelection(const LayerSelection& selection) {
+ if (selection_ == selection)
+ return;
+
+ if (IsActiveTree())
+ layer_tree_host_impl_->HandleVisibilityChanged();
+
selection_ = selection;
}

Powered by Google App Engine
This is Rietveld 408576698