Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. r=mstange

MozReview-Commit-ID: CbMnZJldiUl

--HG--
extra : rebase_source : 4899991aedc8cc2413fcf695601eb79c0245eb01
This commit is contained in:
Astley Chen 2017-04-20 13:16:43 +08:00
parent 8713e7a155
commit f93fc0a7bc

View File

@ -2339,15 +2339,7 @@ ContainerState::GetLayerCreationHint(AnimatedGeometryRoot* aAnimatedGeometryRoot
break;
}
nsIScrollableFrame* scrollable = do_QueryFrame(fParent);
if (scrollable
#ifdef MOZ_B2G
&& scrollable->WantAsyncScroll()
#endif
) {
// WantAsyncScroll() returns false when the frame has overflow:hidden,
// so we won't create tiled layers for overflow:hidden frames even if
// they have a display port. The main purpose of the WantAsyncScroll check
// is to allow the B2G camera app to use hardware composer for compositing.
if (scrollable) {
return LayerManager::SCROLLABLE;
}
}