The little girl is sitting in the chair with her head resting on the arm of the chair.
A girl is resting her head on the arm of a chair.
The girl is a girl; 'with her head resting' strongly indicates she is resting her head.
(-x)
(-x)