Bug 1336530 - Re-enable Android tests that were disabled in
bug 1298218 and disable the assertion. r?tnikkel
MozReview-Commit-ID: L7PnRvUkw5O
--- a/gfx/layers/apz/test/mochitest/mochitest.ini
+++ b/gfx/layers/apz/test/mochitest/mochitest.ini
@@ -37,28 +37,25 @@
skip-if = (os == 'android') # wheel events not supported on mobile
[test_bug1253683.html]
skip-if = (os == 'android') # wheel events not supported on mobile
[test_bug1277814.html]
skip-if = (os == 'android') # wheel events not supported on mobile
[test_bug1304689.html]
[test_bug1304689-2.html]
[test_frame_reconstruction.html]
- skip-if = (toolkit == 'android') # Test was permafailing on mobile after bug 1298218
[test_group_mouseevents.html]
skip-if = (toolkit == 'android') # mouse events not supported on mobile
[test_group_pointerevents.html]
- skip-if = (toolkit == 'android') # Test was permafailing on mobile after bug 1298218
[test_group_touchevents.html]
[test_group_wheelevents.html]
skip-if = (toolkit == 'android') # wheel events not supported on mobile
[test_group_zoom.html]
skip-if = (toolkit != 'android') # only android supports zoom
[test_interrupted_reflow.html]
- skip-if = (toolkit == 'android') # Test was permafailing on mobile after bug 1298218
[test_layerization.html]
skip-if = (os == 'android') # wheel events not supported on mobile
[test_scroll_inactive_bug1190112.html]
skip-if = (os == 'android') # wheel events not supported on mobile
[test_scroll_inactive_flattened_frame.html]
skip-if = (os == 'android') # wheel events not supported on mobile
[test_scroll_subframe_scrollbar.html]
skip-if = (os == 'android') # wheel events not supported on mobile
--- a/layout/painting/FrameLayerBuilder.cpp
+++ b/layout/painting/FrameLayerBuilder.cpp
@@ -5224,17 +5224,19 @@ ContainerState::PostprocessRetainedLayer
void
ContainerState::Finish(uint32_t* aTextContentFlags,
const nsIntRect& aContainerPixelBounds,
nsDisplayList* aChildItems, bool* aHasComponentAlphaChildren)
{
mPaintedLayerDataTree.Finish();
- if (!mParameters.mForEventsAndPluginsOnly) {
+ if (!mParameters.mForEventsAndPluginsOnly && !gfxPrefs::LayoutUseContainersForRootFrames()) {
+ // Bug 1336544 tracks re-enabling this assertion in the
+ // gfxPrefs::LayoutUseContainersForRootFrames() case.
NS_ASSERTION(mContainerBounds.IsEqualInterior(mAccumulatedChildBounds),
"Bounds computation mismatch");
}
if (mLayerBuilder->IsBuildingRetainedLayers()) {
nsIntRegion containerOpaqueRegion;
PostprocessRetainedLayers(&containerOpaqueRegion);
if (containerOpaqueRegion.Contains(aContainerPixelBounds)) {