Chromium Code Reviews| Index: cc/layer.cc |
| diff --git a/cc/layer.cc b/cc/layer.cc |
| index a742d073f81de9864111049949510e06b4554998..8581a40b951fc346ba5c16d40a7eab68ea0d023c 100644 |
| --- a/cc/layer.cc |
| +++ b/cc/layer.cc |
| @@ -284,6 +284,12 @@ void Layer::setChildren(const LayerList& children) |
| addChild(children[i]); |
| } |
| +Layer* Layer::childAt(size_t index) |
| +{ |
| + DCHECK_LT(index, m_children.size()); |
| + return m_children[index].get(); |
| +} |
| + |
| void Layer::setAnchorPoint(const gfx::PointF& anchorPoint) |
| { |
| if (m_anchorPoint == anchorPoint) |