OscillatorNodeOptions has a `parent` field because the
OscillatorNodeOptions dictionary in the WebIDL declaration inherits from
the AudioScheduledNodeOptions dictionary. Since the
ConstantSourceOptions dictionary does not inherit from anything, it has
no parent field.
On 3/31/19 3:26 PM, Chris Benfante wrote:
Hi all,
We've been working on implementing ConstantSourceNode (#21803
<https://github.com/servo/servo/issues/21803>), but have run into some
build issues that we're having trouble identifying. We've model our code on
the OscillatorNode implementation, but can't find what we're missing.
Currently, we're getting a build error when trying to access the parent
attribute of ConstantSourceOptions:
*error[E0609]**: no field `parent` on type
`&dom::bindings::codegen::Bindings::ConstantSourceNodeBinding::ConstantSourceOptions`*
*--> *components/script/dom/constantsourcenode.rs:40:18
*|**40* *| * .parent
*| *
However, this attribute doesn't appear to be specified in ConstantSourceOptions,
nor did it appear in the files for OscillatorNode.
Perhaps you could point us in the right direction?
Here's our fork: https://github.com/josephhutch/servo
Our work is in the dev
Thank in advance,
Chris
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo