Added early out for pinch to prevent crash when no inner scroll layer.
commitb93480861c3fbc24a0f7eeb7a53d03b21a68eceb
authorbokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Feb 2014 13:07:03 +0000 (20 13:07 +0000)
committerbokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Feb 2014 13:07:03 +0000 (20 13:07 +0000)
tree919449eb5b67d0a3fb13089deed06302079669be
parent286ce5711b37ef934dbc4641d25f77fbda332ae0
Added early out for pinch to prevent crash when no inner scroll layer.

The layer tree seems to receive gesture events before it's initialized
(or while being destroyed). This means the pinch events get executed
while InnerViewportScrollLayer() == NULL, which was assumed to be non
NULL. The event handler should probably not be sending events to an
uninitialized layer tree but in the mean time I've disabled the
DCHECK and added an early out to prevent crashes.

BUG=340303

Review URL: https://codereview.chromium.org/170743004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252205 0039d316-1c4b-4281-b951-d872f2087c98
cc/trees/layer_tree_host_impl.cc