Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. r=mstange
authorAstley Chen <aschen@mozilla.com>
Thu, 20 Apr 2017 13:16:43 +0800
changeset 354018 7d77113f3841602c615a7c99376ee51d7675427e
parent 354017 a1c51bf7ec8a9484d654b81db4b76fa0c58778cc
child 354019 648169abf9284444cdc8be0c4f347b25c6112f3c
push id31685
push userkwierso@gmail.com
push dateThu, 20 Apr 2017 21:45:29 +0000
treeherdermozilla-central@5e3dc7e1288a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1355752
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. r=mstange 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,