When the stock owner is another company that has a majority (or 100%) stake it's usually considered one company for liability purposes, at least in the U.S.
Otherwise every company would set up dozens of intermediary shell companies to protect every valuable subsidiary in the hopes of a favorable court ruling if things go belly up.