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

Unified Diff: cc/layer_impl.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor for cleaner state/scrollbar split. Created 7 years, 11 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/layer_impl.cc
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index d95fe5176c0bedbb585ca601aefbda262bb13d95..416b9c4839a186de7e301b249ccf2ae112aba597 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -53,7 +53,7 @@ LayerImpl::LayerImpl(LayerTreeImpl* treeImpl, int id)
, m_betweenWillDrawAndDidDraw(false)
#endif
{
- DCHECK(m_layerId > 0);
+ DCHECK(m_layerId > 0 || m_layerId == -1 || m_layerId == -2);
Ian Vollick 2013/01/15 20:33:48 Same here and anywhere else this may crop up.
DCHECK(m_layerTreeImpl);
m_layerTreeImpl->RegisterLayer(this);
AnimationRegistrar* registrar = m_layerTreeImpl->animationRegistrar();

Powered by Google App Engine
This is Rietveld 408576698