avm2: Rename `StageObject::graphics_of` to just `graphics`

This commit is contained in:
David Wendt 2021-06-22 17:54:40 -04:00
parent b2c1299f79
commit e9b9d64cb6
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ pub fn graphics<'gc>(
activation,
)? {
Value::Undefined | Value::Null => {
let graphics = Value::from(StageObject::graphics_of(activation, dobj)?);
let graphics = Value::from(StageObject::graphics(activation, dobj)?);
this.set_property(
this,
&QName::new(Namespace::private(NS_RUFFLE_INTERNAL), "graphics"),

View File

@ -48,7 +48,7 @@ pub fn graphics<'gc>(
activation,
)? {
Value::Undefined | Value::Null => {
let graphics = Value::from(StageObject::graphics_of(activation, dobj)?);
let graphics = Value::from(StageObject::graphics(activation, dobj)?);
this.set_property(
this,
&QName::new(Namespace::private(NS_RUFFLE_INTERNAL), "graphics"),

View File

@ -102,7 +102,7 @@ impl<'gc> StageObject<'gc> {
}
/// Create a `graphics` object for a given display object.
pub fn graphics_of(
pub fn graphics(
activation: &mut Activation<'_, 'gc, '_>,
display_object: DisplayObject<'gc>,
) -> Result<Self, Error> {