| Index: cc/trees/layer_tree_host.cc
|
| diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
|
| index 48f4864ef4a14e903aba2665fa85a989f725ea8a..18c5c37f9d718a1e57592182f8977163e75ada10 100644
|
| --- a/cc/trees/layer_tree_host.cc
|
| +++ b/cc/trees/layer_tree_host.cc
|
| @@ -320,7 +320,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
|
| sync_tree->ClearViewportLayers();
|
| }
|
|
|
| - sync_tree->RegisterSelection(selection_anchor_, selection_focus_);
|
| + sync_tree->RegisterSelection(selection_start_, selection_end_);
|
|
|
| float page_scale_delta =
|
| sync_tree->page_scale_delta() / sync_tree->sent_page_scale_delta();
|
| @@ -1228,13 +1228,13 @@ void LayerTreeHost::RegisterViewportLayers(
|
| outer_viewport_scroll_layer_ = outer_viewport_scroll_layer;
|
| }
|
|
|
| -void LayerTreeHost::RegisterSelection(const LayerSelectionBound& anchor,
|
| - const LayerSelectionBound& focus) {
|
| - if (selection_anchor_ == anchor && selection_focus_ == focus)
|
| +void LayerTreeHost::RegisterSelection(const LayerSelectionBound& start,
|
| + const LayerSelectionBound& end) {
|
| + if (selection_start_ == start && selection_end_ == end)
|
| return;
|
|
|
| - selection_anchor_ = anchor;
|
| - selection_focus_ = focus;
|
| + selection_start_ = start;
|
| + selection_end_ = end;
|
| SetNeedsCommit();
|
| }
|
|
|
|
|