| Index: cc/trees/layer_tree_host_impl_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
|
| index f9f3a90d51e8df65458ef6fc7ca71e564df1672d..fa301937b5564c47127e0aedcc3d2b793b24c7f0 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -6307,11 +6307,13 @@ TEST_F(LayerTreeHostImplTest, SelectionBoundsPassedToCompositorFrameMetadata) {
|
| EXPECT_EQ(ViewportSelectionBound(), selection_end_before);
|
|
|
| // Plumb the layer-local selection bounds.
|
| - gfx::Rect selection_rect(5, 0, 0, 5);
|
| + gfx::PointF selection_top(5, 0);
|
| + gfx::PointF selection_bottom(5, 5);
|
| LayerSelectionBound start, end;
|
| start.type = SELECTION_BOUND_CENTER;
|
| start.layer_id = root_layer_id;
|
| - start.layer_rect = selection_rect;
|
| + start.edge_bottom = selection_bottom;
|
| + start.edge_top = selection_top;
|
| end = start;
|
| host_impl_->active_tree()->RegisterSelection(start, end);
|
|
|
| @@ -6332,8 +6334,8 @@ TEST_F(LayerTreeHostImplTest, SelectionBoundsPassedToCompositorFrameMetadata) {
|
| fake_output_surface->last_sent_frame().metadata.selection_end;
|
| EXPECT_EQ(start.type, selection_start_after.type);
|
| EXPECT_EQ(end.type, selection_end_after.type);
|
| - EXPECT_EQ(selection_rect, selection_start_after.viewport_rect);
|
| - EXPECT_EQ(selection_rect, selection_start_after.viewport_rect);
|
| + EXPECT_EQ(selection_bottom, selection_start_after.edge_bottom);
|
| + EXPECT_EQ(selection_top, selection_start_after.edge_top);
|
| EXPECT_TRUE(selection_start_after.visible);
|
| EXPECT_TRUE(selection_start_after.visible);
|
| }
|
|
|