@@ -817,7 +817,7 @@ impl<'gc> EditText<'gc> {
817
817
Matrix :: translate ( -tx, -ty)
818
818
}
819
819
820
- fn local_to_layout ( & self , data : & EditTextData , local : Point < Twips > ) -> Point < Twips > {
820
+ fn local_to_layout ( self , data : & EditTextData , local : Point < Twips > ) -> Point < Twips > {
821
821
self . local_to_layout_matrix ( data) * local
822
822
}
823
823
@@ -2035,7 +2035,7 @@ impl<'gc> EditText<'gc> {
2035
2035
self . on_changed ( & mut activation) ;
2036
2036
}
2037
2037
2038
- fn initialize_as_broadcaster ( & self , activation : & mut Avm1Activation < ' _ , ' gc > ) {
2038
+ fn initialize_as_broadcaster ( self , activation : & mut Avm1Activation < ' _ , ' gc > ) {
2039
2039
if let Avm1Value :: Object ( object) = self . object ( ) {
2040
2040
activation. context . avm1 . broadcaster_functions ( ) . initialize (
2041
2041
& activation. context . strings ,
@@ -2056,7 +2056,7 @@ impl<'gc> EditText<'gc> {
2056
2056
}
2057
2057
}
2058
2058
2059
- fn on_changed ( & self , activation : & mut Avm1Activation < ' _ , ' gc > ) {
2059
+ fn on_changed ( self , activation : & mut Avm1Activation < ' _ , ' gc > ) {
2060
2060
if let Avm1Value :: Object ( object) = self . object ( ) {
2061
2061
let _ = object. call_method (
2062
2062
istr ! ( "broadcastMessage" ) ,
@@ -2075,7 +2075,7 @@ impl<'gc> EditText<'gc> {
2075
2075
}
2076
2076
}
2077
2077
2078
- fn on_scroller ( & self , activation : & mut Avm1Activation < ' _ , ' gc > ) {
2078
+ fn on_scroller ( self , activation : & mut Avm1Activation < ' _ , ' gc > ) {
2079
2079
if let Avm1Value :: Object ( object) = self . object ( ) {
2080
2080
let _ = object. call_method (
2081
2081
istr ! ( "broadcastMessage" ) ,
@@ -2088,12 +2088,12 @@ impl<'gc> EditText<'gc> {
2088
2088
}
2089
2089
2090
2090
/// Construct the text field's AVM1 representation.
2091
- fn construct_as_avm1_object ( & self , context : & mut UpdateContext < ' gc > , run_frame : bool ) {
2091
+ fn construct_as_avm1_object ( self , context : & mut UpdateContext < ' gc > , run_frame : bool ) {
2092
2092
let mut text = self . 0 . write ( context. gc ( ) ) ;
2093
2093
if text. object . is_none ( ) {
2094
2094
let object: Avm1Object < ' gc > = Avm1StageObject :: for_display_object (
2095
2095
& context. strings ,
2096
- ( * self ) . into ( ) ,
2096
+ self . into ( ) ,
2097
2097
context. avm1 . prototypes ( ) . text_field ,
2098
2098
)
2099
2099
. into ( ) ;
@@ -2102,10 +2102,10 @@ impl<'gc> EditText<'gc> {
2102
2102
}
2103
2103
drop ( text) ;
2104
2104
2105
- Avm1 :: run_with_stack_frame_for_display_object ( ( * self ) . into ( ) , context, |activation| {
2105
+ Avm1 :: run_with_stack_frame_for_display_object ( self . into ( ) , context, |activation| {
2106
2106
// If this text field has a variable set, initialize text field binding.
2107
2107
if !self . try_bind_text_field_variable ( activation, true ) {
2108
- activation. context . unbound_text_fields . push ( * self ) ;
2108
+ activation. context . unbound_text_fields . push ( self ) ;
2109
2109
}
2110
2110
// People can bind to properties of TextFields the same as other display objects.
2111
2111
self . bind_text_field_variables ( activation) ;
@@ -2120,7 +2120,7 @@ impl<'gc> EditText<'gc> {
2120
2120
2121
2121
/// Construct the text field's AVM2 representation.
2122
2122
fn construct_as_avm2_object (
2123
- & self ,
2123
+ self ,
2124
2124
context : & mut UpdateContext < ' gc > ,
2125
2125
display_object : DisplayObject < ' gc > ,
2126
2126
) {
@@ -2777,7 +2777,7 @@ impl<'gc> EditText<'gc> {
2777
2777
/// the possible transforms are highly limited),
2778
2778
/// * the current implementation should be pixel-perfect (compared to FP).
2779
2779
pub fn draw_device_text_box (
2780
- & self ,
2780
+ self ,
2781
2781
context : & mut RenderContext < ' _ , ' gc > ,
2782
2782
bounds : Rectangle < Twips > ,
2783
2783
background_color : Option < Color > ,
@@ -2862,7 +2862,7 @@ impl<'gc> EditText<'gc> {
2862
2862
/// which is snapped to pixels using [`EditTextPixelSnapping`],
2863
2863
/// * the pixel-perfect position is really hard to achieve, currently it's best-effort only.
2864
2864
pub fn draw_text_box (
2865
- & self ,
2865
+ self ,
2866
2866
context : & mut RenderContext < ' _ , ' gc > ,
2867
2867
bounds : Rectangle < Twips > ,
2868
2868
background_color : Option < Color > ,
0 commit comments