summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host_impl.cc
diff options
context:
space:
mode:
authoryusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 08:00:31 +0000
committeryusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 08:00:31 +0000
commitdf8f44f9d8203f927f2ed4f0b349e1bb7119fcf2 (patch)
tree909979afe467bb16db99cbeaae5f1a77f47f8256 /cc/layer_tree_host_impl.cc
parent7a8f55904af01c4233d82f8198562691013d8029 (diff)
downloadchromium_src-df8f44f9d8203f927f2ed4f0b349e1bb7119fcf2.zip
chromium_src-df8f44f9d8203f927f2ed4f0b349e1bb7119fcf2.tar.gz
chromium_src-df8f44f9d8203f927f2ed4f0b349e1bb7119fcf2.tar.bz2
Ensure that render surface layer list is not dirty/empty before hit testing for touch events
BUG=167135 Review URL: https://chromiumcodereview.appspot.com/11776033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host_impl.cc')
-rw-r--r--cc/layer_tree_host_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 3c22180..9d42698 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -376,6 +376,8 @@ void LayerTreeHostImpl::scheduleAnimation()
bool LayerTreeHostImpl::haveTouchEventHandlersAt(const gfx::Point& viewportPoint)
{
+ if (!ensureRenderSurfaceLayerList())
+ return false;
gfx::PointF deviceViewportPoint = gfx::ScalePoint(viewportPoint, m_deviceScaleFactor);