| Index: cc/trees/layer_tree_impl.cc
|
| diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
|
| index ff5da70a7e7ec633092d56de8cc7282b1316b21e..9586f942f211c064ff9b740c6ca5f619944c6849 100644
|
| --- a/cc/trees/layer_tree_impl.cc
|
| +++ b/cc/trees/layer_tree_impl.cc
|
| @@ -1931,9 +1931,15 @@ LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion(
|
| }
|
|
|
| void LayerTreeImpl::RegisterSelection(const LayerSelection& selection) {
|
| + handle_visibility_changed_ =
|
| + selection_.is_handle_visible != selection.is_handle_visible;
|
| selection_ = selection;
|
| }
|
|
|
| +bool LayerTreeImpl::HandleVisibilityChanged() {
|
| + return handle_visibility_changed_;
|
| +}
|
| +
|
| static gfx::SelectionBound ComputeViewportSelectionBound(
|
| const LayerSelectionBound& layer_bound,
|
| LayerImpl* layer,
|
| @@ -1996,6 +2002,7 @@ void LayerTreeImpl::GetViewportSelection(
|
| device_scale_factor());
|
| selection->is_editable = selection_.is_editable;
|
| selection->is_empty_text_form_control = selection_.is_empty_text_form_control;
|
| + selection->is_handle_visible = selection_.is_handle_visible;
|
| if (selection->start.type() == gfx::SelectionBound::CENTER ||
|
| selection->start.type() == gfx::SelectionBound::EMPTY) {
|
| selection->end = selection->start;
|
|
|