Bug 1015562 - [css-grid] Add a missing grid container check.  Add a convenience function to check for flex/grid container frames and use that throughout this file.  r=dholbert