Construct KeyframeEffectReadOnly objects
This patch implements the last part of the fix for the bug identified in
https://codereview.chromium.org/2389323003. The content of the
KeyframeEffect::create functions is copied to KeyframeEffectReadOnly::create
functions instead of the latter being a simple wrapper around the former.
While this introduces some code duplication, there seems to be very little in
the way of meaningful refactoring that can be done. The content of the functions
is largely plumbing arguments from one place to another, and the ::create
functions can fail (returning nullptr), so the work cannot be moved into
constructors.
BUG=
624639
Committed:
https://crrev.com/d7e233e169431f279af4c78940a0d92784e79ddf
Cr-Commit-Position: refs/heads/master@{#431119}