code: protected void updateStackingContexts()
      {
          if (parent != null)
          {
              if (parent.formsStackingContext())
                  stackingParent = parent;
              else
                  stackingParent = parent.getStackingParent();
          }
      }
docs: Updates the stacking parent values and registers the z-index for this parent.