refactor(ivy): rename stylingProp => styleProp (#26149)

PR Close #26149
This commit is contained in:
Matias Niemelä 2018-09-27 15:07:51 -07:00 committed by Alex Rickabaugh
parent 68fadd9b97
commit c51331689f
9 changed files with 18 additions and 18 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
import {ɵRenderFlags, ɵbind, ɵcontainer, ɵcontainerRefreshEnd, ɵcontainerRefreshStart, ɵdefineComponent, ɵdetectChanges, ɵelementEnd, ɵelementStart, ɵelementStyling, ɵelementStylingProp, ɵembeddedViewEnd, ɵembeddedViewStart, ɵtext, ɵtextBinding as ɵtextBinding} from '@angular/core'; import {ɵRenderFlags, ɵbind, ɵcontainer, ɵcontainerRefreshEnd, ɵcontainerRefreshStart, ɵdefineComponent, ɵdetectChanges, ɵelementEnd, ɵelementStart, ɵelementStyleProp, ɵelementStyling, ɵembeddedViewEnd, ɵembeddedViewStart, ɵtext, ɵtextBinding as ɵtextBinding} from '@angular/core';
import {ComponentDefInternal} from '@angular/core/src/render3/interfaces/definition'; import {ComponentDefInternal} from '@angular/core/src/render3/interfaces/definition';
import {TableCell, buildTable, emptyTable} from '../util'; import {TableCell, buildTable, emptyTable} from '../util';
@ -55,7 +55,7 @@ export class LargeTableComponent {
ɵelementEnd(); ɵelementEnd();
} }
if (rf2 & ɵRenderFlags.Update) { if (rf2 & ɵRenderFlags.Update) {
ɵelementStylingProp(0, 0, null, cell.row % 2 ? '' : 'grey'); ɵelementStyleProp(0, 0, null, cell.row % 2 ? '' : 'grey');
ɵtextBinding(1, ɵbind(cell.value)); ɵtextBinding(1, ɵbind(cell.value));
} }
} }

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
import {ɵRenderFlags, ɵbind, ɵcontainer, ɵcontainerRefreshEnd, ɵcontainerRefreshStart, ɵdefineComponent, ɵdetectChanges, ɵelementEnd, ɵelementProperty, ɵelementStart, ɵelementStyling as s, ɵelementStylingProp, ɵembeddedViewEnd, ɵembeddedViewStart, ɵinterpolation1, ɵtext, ɵtextBinding as ɵtextBinding} from '@angular/core'; import {ɵRenderFlags, ɵbind, ɵcontainer, ɵcontainerRefreshEnd, ɵcontainerRefreshStart, ɵdefineComponent, ɵdetectChanges, ɵelementEnd, ɵelementProperty, ɵelementStart, ɵelementStyleProp, ɵelementStyling as s, ɵembeddedViewEnd, ɵembeddedViewStart, ɵinterpolation1, ɵtext, ɵtextBinding as ɵtextBinding} from '@angular/core';
import {TreeNode, buildTree, emptyTree} from '../util'; import {TreeNode, buildTree, emptyTree} from '../util';
@ -50,7 +50,7 @@ export class TreeComponent {
ɵcontainer(3); ɵcontainer(3);
} }
if (rf & ɵRenderFlags.Update) { if (rf & ɵRenderFlags.Update) {
ɵelementStylingProp(0, 0, ctx.data.depth % 2 ? '' : 'grey'); ɵelementStyleProp(0, 0, ctx.data.depth % 2 ? '' : 'grey');
ɵtextBinding(1, ɵinterpolation1(' ', ctx.data.value, ' ')); ɵtextBinding(1, ɵinterpolation1(' ', ctx.data.value, ' '));
ɵcontainerRefreshStart(2); ɵcontainerRefreshStart(2);
{ {
@ -127,7 +127,7 @@ export function TreeTpl(rf: ɵRenderFlags, ctx: TreeNode) {
ɵelementEnd(); ɵelementEnd();
} }
if (rf & ɵRenderFlags.Update) { if (rf & ɵRenderFlags.Update) {
ɵelementStylingProp(1, 0, ctx.depth % 2 ? '' : 'grey'); ɵelementStyleProp(1, 0, ctx.depth % 2 ? '' : 'grey');
ɵtextBinding(2, ɵinterpolation1(' ', ctx.value, ' ')); ɵtextBinding(2, ɵinterpolation1(' ', ctx.value, ' '));
ɵcontainerRefreshStart(3); ɵcontainerRefreshStart(3);
{ {

View File

@ -425,7 +425,7 @@ describe('compiler compliance', () => {
$r3$.ɵelementEnd(); $r3$.ɵelementEnd();
} }
if (rf & 2) { if (rf & 2) {
$r3$.ɵelementStylingProp(0, 0, ctx.color); $r3$.ɵelementStyleProp(0, 0, ctx.color);
$r3$.ɵelementClassProp(0, 0, ctx.error); $r3$.ɵelementClassProp(0, 0, ctx.error);
$r3$.ɵelementStylingApply(0); $r3$.ɵelementStylingApply(0);
} }

View File

@ -315,8 +315,8 @@ describe('compiler compliance: styling', () => {
} }
if (rf & 2) { if (rf & 2) {
$r3$.ɵelementStylingMap(0, null, $ctx$.myStyleExp); $r3$.ɵelementStylingMap(0, null, $ctx$.myStyleExp);
$r3$.ɵelementStylingProp(0, 1, $ctx$.myWidth); $r3$.ɵelementStyleProp(0, 1, $ctx$.myWidth);
$r3$.ɵelementStylingProp(0, 2, $ctx$.myHeight); $r3$.ɵelementStyleProp(0, 2, $ctx$.myHeight);
$r3$.ɵelementStylingApply(0); $r3$.ɵelementStylingApply(0);
$r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("border-width: 10px"), $r3$.ɵsanitizeStyle); $r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("border-width: 10px"), $r3$.ɵsanitizeStyle);
} }
@ -373,7 +373,7 @@ describe('compiler compliance: styling', () => {
$r3$.ɵelementEnd(); $r3$.ɵelementEnd();
} }
if (rf & 2) { if (rf & 2) {
$r3$.ɵelementStylingProp(0, 0, ctx.myImage); $r3$.ɵelementStyleProp(0, 0, ctx.myImage);
$r3$.ɵelementStylingApply(0); $r3$.ɵelementStylingApply(0);
} }
} }

View File

@ -43,7 +43,7 @@ export class Identifiers {
static elementStylingMap: o.ExternalReference = {name: 'ɵelementStylingMap', moduleName: CORE}; static elementStylingMap: o.ExternalReference = {name: 'ɵelementStylingMap', moduleName: CORE};
static elementStyleProp: o.ExternalReference = {name: 'ɵelementStylingProp', moduleName: CORE}; static elementStyleProp: o.ExternalReference = {name: 'ɵelementStyleProp', moduleName: CORE};
static elementStylingApply: static elementStylingApply:
o.ExternalReference = {name: 'ɵelementStylingApply', moduleName: CORE}; o.ExternalReference = {name: 'ɵelementStylingApply', moduleName: CORE};

View File

@ -89,7 +89,7 @@ export {
elementAttribute as ɵelementAttribute, elementAttribute as ɵelementAttribute,
elementStyling as ɵelementStyling, elementStyling as ɵelementStyling,
elementStylingMap as ɵelementStylingMap, elementStylingMap as ɵelementStylingMap,
elementStyleProp as ɵelementStylingProp, elementStyleProp as ɵelementStyleProp,
elementStylingApply as ɵelementStylingApply, elementStylingApply as ɵelementStylingApply,
elementClassProp as ɵelementClassProp, elementClassProp as ɵelementClassProp,
textBinding as ɵtextBinding, textBinding as ɵtextBinding,

View File

@ -92,7 +92,7 @@ export const angularCoreEnv: {[name: string]: Function} = {
'ɵreference': r3.reference, 'ɵreference': r3.reference,
'ɵelementStyling': r3.elementStyling, 'ɵelementStyling': r3.elementStyling,
'ɵelementStylingMap': r3.elementStylingMap, 'ɵelementStylingMap': r3.elementStylingMap,
'ɵelementStylingProp': r3.elementStyleProp, 'ɵelementStyleProp': r3.elementStyleProp,
'ɵelementStylingApply': r3.elementStylingApply, 'ɵelementStylingApply': r3.elementStylingApply,
'ɵtemplate': r3.template, 'ɵtemplate': r3.template,
'ɵtext': r3.text, 'ɵtext': r3.text,

View File

@ -345,8 +345,8 @@ describe('elements', () => {
$r3$.ɵelementEnd(); $r3$.ɵelementEnd();
} }
if (rf & 2) { if (rf & 2) {
$r3$.ɵelementStylingProp(0, 0, ctx.someColor); $r3$.ɵelementStyleProp(0, 0, ctx.someColor);
$r3$.ɵelementStylingProp(0, 1, ctx.someWidth, 'px'); $r3$.ɵelementStyleProp(0, 1, ctx.someWidth, 'px');
$r3$.ɵelementStylingApply(0); $r3$.ɵelementStylingApply(0);
} }
} }

View File

@ -53,7 +53,7 @@ describe('compiler sanitization', () => {
if (rf & 2) { if (rf & 2) {
$r3$.ɵelementProperty(0, 'innerHTML', $r3$.ɵbind(ctx.innerHTML), $r3$.ɵsanitizeHtml); $r3$.ɵelementProperty(0, 'innerHTML', $r3$.ɵbind(ctx.innerHTML), $r3$.ɵsanitizeHtml);
$r3$.ɵelementProperty(0, 'hidden', $r3$.ɵbind(ctx.hidden)); $r3$.ɵelementProperty(0, 'hidden', $r3$.ɵbind(ctx.hidden));
$r3$.ɵelementStylingProp(0, 0, ctx.style); $r3$.ɵelementStyleProp(0, 0, ctx.style);
$r3$.ɵelementStylingApply(0); $r3$.ɵelementStylingApply(0);
$r3$.ɵelementProperty(1, 'src', $r3$.ɵbind(ctx.url), $r3$.ɵsanitizeUrl); $r3$.ɵelementProperty(1, 'src', $r3$.ɵbind(ctx.url), $r3$.ɵsanitizeUrl);
$r3$.ɵelementAttribute(1, 'srcset', $r3$.ɵbind(ctx.url), $r3$.ɵsanitizeUrl); $r3$.ɵelementAttribute(1, 'srcset', $r3$.ɵbind(ctx.url), $r3$.ɵsanitizeUrl);