@@ -721,40 +721,25 @@ export class CssState {
721
721
cssExpsProperties [ property ] = value ;
722
722
continue ;
723
723
}
724
-
725
- if ( property in oldProperties ) {
726
- const oldValue = oldProperties [ property ] ;
727
-
728
- delete oldProperties [ property ] ;
729
-
730
- if ( oldValue === value ) {
731
- // Skip unchanged values
732
- continue ;
733
- }
724
+ delete oldProperties [ property ] ;
725
+ if ( property in oldProperties && oldProperties [ property ] === value ) {
726
+ // Skip unchanged values
727
+ continue ;
734
728
}
735
-
736
729
if ( isCssVariable ( property ) ) {
737
730
view . style . setScopedCssVariable ( property , value ) ;
738
731
delete newPropertyValues [ property ] ;
739
732
continue ;
740
733
}
741
-
742
734
valuesToApply [ property ] = value ;
743
735
}
744
-
745
- // we need to parse CSS vars first before evaluating css expressions
736
+ //we need to parse CSS vars first before evaluating css expressions
746
737
for ( const property in cssExpsProperties ) {
738
+ delete oldProperties [ property ] ;
747
739
const value = evaluateCssExpressions ( view , property , cssExpsProperties [ property ] ) ;
748
-
749
- if ( property in oldProperties ) {
750
- const oldValue = oldProperties [ property ] ;
751
-
752
- delete oldProperties [ property ] ;
753
-
754
- if ( oldValue === value ) {
755
- // Skip unchanged values
756
- continue ;
757
- }
740
+ if ( property in oldProperties && oldProperties [ property ] === value ) {
741
+ // Skip unchanged values
742
+ continue ;
758
743
}
759
744
if ( value === unsetValue ) {
760
745
delete newPropertyValues [ property ] ;
@@ -776,11 +761,9 @@ export class CssState {
776
761
view [ camelCasedProperty ] = unsetValue ;
777
762
}
778
763
}
779
-
780
764
// Set new values to the style
781
765
for ( const property in valuesToApply ) {
782
766
const value = valuesToApply [ property ] ;
783
-
784
767
try {
785
768
if ( property in view . style ) {
786
769
view . style [ `css:${ property } ` ] = value ;
0 commit comments