Implement HTMLCanvasElement's transferControlToOffscreen
To summarize, this function throws an exception when the canvas has an
associated context. A new OffscreenCanvas is created and it has a pointer
pointing to the originated canvas element.
A layout test is also added to make sure that there is no exception when
the original canvas doesn't have a context, and throws an exception when
the canvas does have a context.
BUG=
598753
Committed:
https://crrev.com/45e63d4ce6f4eb4c05fa27e1ece44ace00941924
Cr-Commit-Position: refs/heads/master@{#384627}