Bug 795811 - Make GetPrimaryScrollableLayer() return null on all configurations except MOZ_WIDGET_ANDROID r=cjones

This commit is contained in:
David Zbarsky 2012-10-02 00:19:56 -04:00
parent 0a8c87a4bc
commit cc5f5cf37b

View File

@ -200,6 +200,12 @@ namespace layers {
Layer*
LayerManager::GetPrimaryScrollableLayer()
{
// AsyncPanZoomController handles multiple scrollable layers, so there is no
// "primary" scrollable layer.
#ifndef MOZ_WIDGET_ANDROID
return nullptr;
#endif
if (!mRoot) {
return nullptr;
}