DescriptionTest type of exposed AnimationEffectTimingReadOnly
The KeyframeEffectReadOnly interface was implemented in
https://codereview.chromium.org/2369833002 as a simple redirection to a
KeyframeEffect object (where KeyframeEffect is actually a subclass of
KeyframeEffectReadOnly).
In a subsequent patch (https://codereview.chromium.org/2379863003), the timing
attribute of KeyframeEffect was changed: KeyframeEffectReadOnly.timing is
an AnimationEffectTimingReadOnly, and KeyframeEffect.timing is an
AnimationEffectTiming (a subclass of AnimationEffectTimingReadOnly).
It turns out that if you construct a KeyframeEffectReadOnly object in
JavaScript, the V8/JavaScript interface magically interprets and represents the
underlying KeyframeEffect object as a KeyframeEffectReadOnly object, as we
wanted. But when the JavaScript then accesses the timing attribute, it appears
to treat it as a KeyframeEffect object, calling the KeyframeEffect version of
the getter instead of the KeyframeEffectReadOnly version.
This patch commits a test that illustrates the bug. A future patch will fix the
bug by actually constructing KeyframeEffectReadOnly objects in the C++.
BUG=624639
Committed: https://crrev.com/b6d80c681fbc035f6267353b4fefbab1b33744ae
Cr-Commit-Position: refs/heads/master@{#423115}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 8 (3 generated)
|