Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. draft
authorAstley Chen <aschen@mozilla.com>
Thu, 20 Apr 2017 13:16:43 +0800
changeset 565629 bb18747a1817a45822195fabf8ebf6d62a4ba9f3
parent 565628 edf65f122681c00e7d9294fd9d8fa73711c2fd5f
child 625045 6e50bb0df92a12d2889ce26ad4a6be5a7112eb13
push id54927
push useraschen@mozilla.com
push dateThu, 20 Apr 2017 05:17:46 +0000
bugs1355752
milestone55.0a1
Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. MozReview-Commit-ID: CbMnZJldiUl
layout/painting/FrameLayerBuilder.cpp
--- a/layout/painting/FrameLayerBuilder.cpp
+++ b/layout/painting/FrameLayerBuilder.cpp
@@ -2334,25 +2334,17 @@ ContainerState::GetLayerCreationHint(Ani
   for (AnimatedGeometryRoot* agr = aAnimatedGeometryRoot;
        agr && agr != mContainerAnimatedGeometryRoot;
        agr = agr->mParentAGR) {
     nsIFrame* fParent = nsLayoutUtils::GetCrossDocParentFrame(*agr);
     if (!fParent) {
       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;
     }
   }
   return LayerManager::NONE;
 }
 
 already_AddRefed<PaintedLayer>
 ContainerState::AttemptToRecyclePaintedLayer(AnimatedGeometryRoot* aAnimatedGeometryRoot,