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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 years, 7 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_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index 22ae78a2a87194bc5fcdfee82036a14a7b96428b..b54779680d18929329aeff8a7befa41bbef36288 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -569,8 +569,7 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
root_layer->SetBounds(gfx::Size(10, 10));
root_scroll_layer_ = FakePictureLayer::Create(&fake_content_layer_client_);
- root_scroll_layer_->SetElementId(
- LayerIdToElementIdForTesting(root_scroll_layer_->id()));
+ root_scroll_layer_->SetElementId(root_scroll_layer_->id());
root_scroll_layer_->SetBounds(gfx::Size(110, 110));
root_scroll_layer_->SetPosition(gfx::PointF());
root_scroll_layer_->SetIsDrawable(true);
@@ -583,8 +582,7 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
child_layer_->set_did_scroll_callback(
base::Bind(&LayerTreeHostScrollTestCaseWithChild::DidScroll,
base::Unretained(this)));
- child_layer_->SetElementId(
- LayerIdToElementIdForTesting(child_layer_->id()));
+ child_layer_->SetElementId(child_layer_->id());
child_layer_->SetBounds(gfx::Size(110, 110));
if (scroll_child_layer_) {
@@ -602,8 +600,7 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
child_layer_->SetIsDrawable(true);
child_layer_->SetScrollClipLayerId(outer_container_layer->id());
- child_layer_->SetElementId(
- LayerIdToElementIdForTesting(child_layer_->id()));
+ child_layer_->SetElementId(child_layer_->id());
child_layer_->SetBounds(root_scroll_layer_->bounds());
root_scroll_layer_->AddChild(child_layer_);
@@ -1440,8 +1437,7 @@ class LayerTreeHostScrollTestLayerStructureChange
scroll_layer->SetPosition(gfx::PointF());
scroll_layer->SetIsDrawable(true);
scroll_layer->SetScrollClipLayerId(parent->id());
- scroll_layer->SetElementId(
- LayerIdToElementIdForTesting(scroll_layer->id()));
+ scroll_layer->SetElementId(scroll_layer->id());
scroll_layer->SetBounds(gfx::Size(parent->bounds().width() + 100,
parent->bounds().height() + 100));
scroll_layer->set_did_scroll_callback(base::Bind(

Powered by Google App Engine
This is Rietveld 408576698