Bug 1153694 - Don't let nsDisplayFixedPosition cause unnecessary layerization around itself. r=mattwoodrow

MozReview-Commit-ID: 66q3PkOdvTe
This commit is contained in:
Markus Stange
2016-06-02 20:55:02 -04:00
parent 2f543743af
commit 0ecc6c3a60
3 changed files with 45 additions and 0 deletions

View File

@@ -4005,6 +4005,10 @@ ContainerState::ProcessDisplayItems(nsDisplayList* aList)
mPaintedLayerDataTree.AddingOwnLayer(animatedGeometryRoot,
clipPtr,
uniformColorPtr);
} else if (!clipMovesWithLayer) {
mPaintedLayerDataTree.AddingOwnLayer(animatedGeometryRootForClip,
clipPtr,
uniformColorPtr);
} else {
// Using itemVisibleRect here isn't perfect. itemVisibleRect can be
// larger or smaller than the potential bounds of item's contents in