| 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;
|
|
|