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

Unified Diff: cc/layers/layer_impl.cc

Issue 1832663002: cc : Determine if a layer is root by using the value in LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 99b5fe5b1a99a2ede69d4fe8ebdf36ef58c539bb..5b5f50cffee16ddb5206cf89087fcc3fa1660e82 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -151,18 +151,6 @@ void LayerImpl::ClearChildList() {
children_.clear();
}
-bool LayerImpl::HasAncestor(const LayerImpl* ancestor) const {
- if (!ancestor)
- return false;
-
- for (const LayerImpl* layer = this; layer; layer = layer->parent()) {
- if (layer == ancestor)
- return true;
- }
-
- return false;
-}
-
void LayerImpl::SetScrollParent(LayerImpl* parent) {
if (scroll_parent_ == parent)
return;

Powered by Google App Engine
This is Rietveld 408576698