To straighten one's face

to cease laughing or smiling, etc., and compose one's features.

See also: Straighten