Optimized DependencyObject setValue performance (#2260)

* Cached all properties from metadata as fields on Property
ResetValue does not remove entry but only reset value for the given ValueSource (Local by default)
Optimized setValueInternal performance

* Removed TS dependency

* Fix tslint
This commit is contained in:
Hristo Hristov
2016-06-07 15:30:09 +03:00
parent 51e00d4dd3
commit 743a2efb4a
14 changed files with 360 additions and 407 deletions

View File

@ -624,7 +624,7 @@ export class ViewStyler implements style.Styler {
}
private static resetNativeLayoutParamsProperty(view: View, nativeValue: any): void {
ViewStyler.setNativeLayoutParamsProperty(view, style.nativeLayoutParamsProperty.metadata.defaultValue)
ViewStyler.setNativeLayoutParamsProperty(view, style.nativeLayoutParamsProperty.defaultValue)
}
private static setPaddingProperty(view: View, newValue: Thickness) {