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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 266913021: Hit test on the layer tree rather than the RSLL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanups. Created 6 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_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 02f383fbc60c2c89248898ecfb5abdfb9551ee7f..b5327d6a7b47d1cfdcaa70464ee76d160aefd6c5 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -6140,7 +6140,7 @@ TEST_F(LayerTreeHostImplTest, ScrollUnknownScrollAncestorMismatch) {
occluder_layer->SetDrawsContent(true);
occluder_layer->SetBounds(content_size);
occluder_layer->SetContentBounds(content_size);
- occluder_layer->SetPosition(gfx::PointF());
+ occluder_layer->SetPosition(gfx::PointF(-10.f, -10.f));
occluder_layer->SetAnchorPoint(gfx::PointF());
int child_scroll_clip_layer_id = 7;
@@ -6151,7 +6151,7 @@ TEST_F(LayerTreeHostImplTest, ScrollUnknownScrollAncestorMismatch) {
scoped_ptr<LayerImpl> child_scroll = CreateScrollableLayer(
child_scroll_layer_id, content_size, child_scroll_clip.get());
- child_scroll->SetDrawsContent(false);
+ child_scroll->SetPosition(gfx::PointF(10.f, 10.f));
child_scroll->AddChild(occluder_layer.Pass());
scroll_layer->AddChild(child_scroll.Pass());

Powered by Google App Engine
This is Rietveld 408576698