Transfer canvas state to the next frame with noticable restrictions.

Transfer canvas state to the next frame with the next restrictions:
- transform matrix must be invertable (to get clip area before transform)
- clip area must be rectangular

BUG=392614

Review URL: https://codereview.chromium.org/501353002

git-svn-id: svn://svn.chromium.org/blink/trunk@182036 bbb929c8-8fbe-4397-9dbb-9b2b20218538