Altering the circumstances under which an equity court is authorized to grant visitation rights to a grandparent of a child to include that the petition for visitation rights was filed after an action for divorce, annulment, custody, or paternity was filed by a parent of the child; and requiring an equity court to grant certain visitation rights if the child resided with the grandparent for at least 12 months, or the child's parent, who is the child of the grandparent, is deceased and the court finds it in the best interest of the child.