angular-cn/packages/core/test/render3/styling_next
Matias Niemelä b2decf0266 perf(ivy): speed up bindings when no directives are present (#32919)
Prior to this fix, whenever a style or class binding is present, the
binding application process would require an instance of `TStylingContext`
to be built regardless of whether or not any binding resolution is needed
(just so that it knows whether or not there are any collisions).
This check is, however, unnecessary because if (and only if) there
are directives present on the element then are collisions possible.

This patch removes the need for style/class bindings to register
themselves on to a `TStylingContext` if there are no directives and
present on an element. This means that all map and prop-based
style/class bindings are applied as soon as bindings are updated on
an element.

PR Close #32919
2019-10-10 13:57:24 -07:00
..
map_based_bindings_spec.ts refactor(ivy): move all styling util code into `utils/styling_utils.ts` (#32731) 2019-09-18 15:06:39 -07:00
styling_context_spec.ts perf(ivy): speed up bindings when no directives are present (#32919) 2019-10-10 13:57:24 -07:00
styling_debug_spec.ts perf(ivy): speed up bindings when no directives are present (#32919) 2019-10-10 13:57:24 -07:00