| Index: cc/layer.cc
|
| diff --git a/cc/layer.cc b/cc/layer.cc
|
| index 242ad765ed55ec51053e471195c8530c80ad0e2e..5ae5f2735799f3cde5892e61e4e452641658c547 100644
|
| --- a/cc/layer.cc
|
| +++ b/cc/layer.cc
|
| @@ -64,6 +64,7 @@ Layer::Layer()
|
| , m_rasterScale(1.0)
|
| , m_automaticallyComputeRasterScale(false)
|
| , m_boundsContainPageScale(false)
|
| + , m_numDescendantsThatDrawContent(0)
|
| , m_layerAnimationDelegate(0)
|
| , m_layerScrollClient(0)
|
| {
|
| @@ -698,19 +699,6 @@ void Layer::createRenderSurface()
|
| setRenderTarget(this);
|
| }
|
|
|
| -int Layer::descendantsDrawContent()
|
| -{
|
| - int result = 0;
|
| - for (size_t i = 0; i < m_children.size(); ++i) {
|
| - if (m_children[i]->drawsContent())
|
| - ++result;
|
| - result += m_children[i]->descendantsDrawContent();
|
| - if (result > 1)
|
| - return result;
|
| - }
|
| - return result;
|
| -}
|
| -
|
| int Layer::id() const
|
| {
|
| return m_layerId;
|
|
|