angular-cn/packages/common/test/directives
Miško Hevery 5aabe93abe refactor(ivy): Switch styling to new reconcile algorithm (#34616)
NOTE: This change must be reverted with previous deletes so that it code remains in build-able state.

This change deletes old styling code and replaces it with a simplified styling algorithm.

The mental model for the new algorithm is:
- Create a linked list of styling bindings in the order of priority. All styling bindings ere executed in compiled order and than a linked list of bindings is created in priority order.
- Flush the style bindings at the end of `advance()` instruction. This implies that there are two flush events. One at the end of template `advance` instruction in the template. Second one at the end of `hostBindings` `advance` instruction when processing host bindings (if any).
- Each binding instructions effectively updates the string to represent the string at that location. Because most of the bindings are additive, this is a cheap strategy in most cases. In rare cases the strategy requires removing tokens from the styling up to this point. (We expect that to be rare case)S Because, the bindings are presorted in the order of priority, it is safe to resume the processing of the concatenated string from the last change binding.

PR Close #34616
2020-01-24 12:23:00 -08:00
..
ng_class_spec.ts refactor(ivy): Switch styling to new reconcile algorithm (#34616) 2020-01-24 12:23:00 -08:00
ng_component_outlet_spec.ts refactor(core): Migrate TestBed.get to TestBed.inject (#32382) 2019-09-09 19:10:54 -04:00
ng_for_spec.ts fix(common): properly update collection reference in NgForOf (#24684) 2018-06-29 06:43:44 -07:00
ng_if_spec.ts refactor(core): move server-only DomAdapter methods into ServerRenderer (#32408) 2019-09-03 11:59:39 -07:00
ng_plural_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
ng_style_spec.ts fix(common): cleanup the StylingDiffer and related code (#34307) 2020-01-17 14:07:27 -05:00
ng_switch_spec.ts test(common): update common tests to use static flag (#30626) 2019-05-23 10:31:32 -07:00
ng_template_outlet_spec.ts fix(ivy): ngTemplateOutlet error when switching between null and template value (#32160) 2019-08-19 10:13:10 -07:00
non_bindable_spec.ts refactor(core): move server-only DomAdapter methods into ServerRenderer (#32408) 2019-09-03 11:59:39 -07:00