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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp

Issue 2890953002: [SPv1] Always set a CompositorElementId on main graphics layers; use PaintLayer id. (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: third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp b/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
index 2a164b568c08949c8c51da1c15960a9b900ec9bf..50a5c61948fec858d6d767d2deb2703c7c77c6cc 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp
@@ -15,7 +15,7 @@ uint64_t IdFromCompositorElementId(CompositorElementId element_id) {
}
TEST_F(CompositorElementIdTest, EncodeDecode) {
- CompositorElementId element_id = CompositorElementIdFromDOMNodeId(
+ CompositorElementId element_id = CompositorElementIdFromPaintLayerId(
1, CompositorElementIdNamespace::kPrimary);
EXPECT_EQ(1u, IdFromCompositorElementId(element_id));
EXPECT_EQ(CompositorElementIdNamespace::kPrimary,
@@ -27,10 +27,10 @@ TEST_F(CompositorElementIdTest, EncodeDecode) {
EXPECT_EQ(CompositorElementIdNamespace::kLinkHighlight,
NamespaceFromCompositorElementId(element_id));
- element_id = CompositorElementIdFromDOMNodeId(
- 23, CompositorElementIdNamespace::kScroll);
+ element_id = CompositorElementIdFromScrollbarId(
+ 23, CompositorElementIdNamespace::kScrollbar);
EXPECT_EQ(23u, IdFromCompositorElementId(element_id));
- EXPECT_EQ(CompositorElementIdNamespace::kScroll,
+ EXPECT_EQ(CompositorElementIdNamespace::kScrollbar,
NamespaceFromCompositorElementId(element_id));
}

Powered by Google App Engine
This is Rietveld 408576698