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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2816063003: Replace layer id with Element id for tracking scrollbar animation controllers (Closed)
Patch Set: Address reviewer comments, pull element_id.h change to another patch Created 3 years, 8 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_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index a3afacd045673316e2fa11cb084b95d70898b8f1..df9ffab368a52d5085831526817a3eeab3bf0e25 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -164,15 +164,15 @@ bool LayerTreeHostCommon::ScrollUpdateInfo::operator==(
}
LayerTreeHostCommon::ScrollbarsUpdateInfo::ScrollbarsUpdateInfo()
- : layer_id(Layer::INVALID_ID), hidden(true) {}
+ : element_id(), hidden(true) {}
-LayerTreeHostCommon::ScrollbarsUpdateInfo::ScrollbarsUpdateInfo(int layer_id,
+LayerTreeHostCommon::ScrollbarsUpdateInfo::ScrollbarsUpdateInfo(ElementId id,
bool hidden)
- : layer_id(layer_id), hidden(hidden) {}
+ : element_id(id), hidden(hidden) {}
bool LayerTreeHostCommon::ScrollbarsUpdateInfo::operator==(
const LayerTreeHostCommon::ScrollbarsUpdateInfo& other) const {
- return layer_id == other.layer_id && hidden == other.hidden;
+ return element_id == other.element_id && hidden == other.hidden;
}
ScrollAndScaleSet::ScrollAndScaleSet()

Powered by Google App Engine
This is Rietveld 408576698