Bug 966397. Part 2: Don't look at ancestors of mContainerReferenceFrame when searching for a fixed-pos ancestor we belong to, since we'll change coordinate spaces. The metadata will be attached to an ancestor layer in that case. r=mattwoodrow

--HG--
extra : rebase_source : cfb56bb2111abce99cd475b9fa8c516d53621ed4
This commit is contained in:
Robert O'Callahan 2014-02-17 14:51:49 +13:00
parent 39c3f2bf7b
commit e8c97c2ed5

View File

@ -1690,6 +1690,10 @@ ContainerState::FindFixedPosFrameForLayerData(const nsIFrame* aAnimatedGeometryR
result = f; result = f;
break; break;
} }
if (f == mContainerReferenceFrame) {
// The metadata will go on an ancestor layer if necessary.
return nullptr;
}
} }
if (!result) { if (!result) {
return nullptr; return nullptr;