mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. r=mstange
MozReview-Commit-ID: CbMnZJldiUl --HG-- extra : rebase_source : 4899991aedc8cc2413fcf695601eb79c0245eb01
This commit is contained in:
parent
8713e7a155
commit
f93fc0a7bc
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user