refactor(ivy): drop element prefixes for all styling-related instructions (#30318)

This is the final patch to migrate the Angular styling code to have a
smaller instruction set in preparation for the runtime refactor. All
styling-related instructions now work both in template and hostBindings
functions and do not use `element` as a prefix for their names:

BEFORE:
  elementStyling()
  elementStyleProp()
  elementClassProp()
  elementStyleMap()
  elementClassMap()
  elementStylingApply()

AFTER:
  styling()
  styleProp()
  classProp()
  styleMap()
  classMap()
  stylingApply()

PR Close #30318
This commit is contained in:
Matias Niemelä
2019-05-08 11:26:40 -07:00
committed by Alex Rickabaugh
parent c016e2c4ec
commit d8665e639b
25 changed files with 386 additions and 391 deletions

View File

@ -920,9 +920,6 @@
{
"name": "incrementActiveDirectiveId"
},
{
"name": "initElementStyling"
},
{
"name": "initNodeFlags"
},
@ -932,6 +929,9 @@
{
"name": "initializeTNodeInputs"
},
{
"name": "initstyling"
},
{
"name": "injectElementRef"
},
@ -1364,6 +1364,9 @@
{
"name": "ɵɵbind"
},
{
"name": "ɵɵclassProp"
},
{
"name": "ɵɵdefineComponent"
},
@ -1376,21 +1379,12 @@
{
"name": "ɵɵdirectiveInject"
},
{
"name": "ɵɵelementClassProp"
},
{
"name": "ɵɵelementEnd"
},
{
"name": "ɵɵelementStart"
},
{
"name": "ɵɵelementStyling"
},
{
"name": "ɵɵelementStylingApply"
},
{
"name": "ɵɵgetCurrentView"
},
@ -1421,6 +1415,12 @@
{
"name": "ɵɵselect"
},
{
"name": "ɵɵstyling"
},
{
"name": "ɵɵstylingApply"
},
{
"name": "ɵɵtemplate"
},