Adding wrap_content functionality to Mercury snippets.

Adding wrap_content functionality to Mercury snippets.