Skip to content

Commit c513316

Browse files
matskoalxhub
authored andcommitted
refactor(ivy): rename stylingProp => styleProp (angular#26149)
PR Close angular#26149
1 parent 68fadd9 commit c513316

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

modules/benchmarks/src/largetable/render3/table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {ɵRenderFlags, ɵbind, ɵcontainer, ɵcontainerRefreshEnd, ɵcontainerRefreshStart, ɵdefineComponent, ɵdetectChanges, ɵelementEnd, ɵelementStart, ɵelementStyling, ɵelementStylingProp, ɵembeddedViewEnd, ɵembeddedViewStart, ɵtext, ɵtextBinding as ɵtextBinding} from '@angular/core';
9+
import {ɵRenderFlags, ɵbind, ɵcontainer, ɵcontainerRefreshEnd, ɵcontainerRefreshStart, ɵdefineComponent, ɵdetectChanges, ɵelementEnd, ɵelementStart, ɵelementStyleProp, ɵelementStyling, ɵembeddedViewEnd, ɵembeddedViewStart, ɵtext, ɵtextBinding as ɵtextBinding} from '@angular/core';
1010
import {ComponentDefInternal} from '@angular/core/src/render3/interfaces/definition';
1111

1212
import {TableCell, buildTable, emptyTable} from '../util';
@@ -55,7 +55,7 @@ export class LargeTableComponent {
5555
ɵelementEnd();
5656
}
5757
if (rf2 & ɵRenderFlags.Update) {
58-
ɵelementStylingProp(0, 0, null, cell.row % 2 ? '' : 'grey');
58+
ɵelementStyleProp(0, 0, null, cell.row % 2 ? '' : 'grey');
5959
ɵtextBinding(1, ɵbind(cell.value));
6060
}
6161
}

modules/benchmarks/src/tree/render3/tree.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
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';
9+
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';
1010

1111
import {TreeNode, buildTree, emptyTree} from '../util';
1212

@@ -50,7 +50,7 @@ export class TreeComponent {
5050
ɵcontainer(3);
5151
}
5252
if (rf & ɵRenderFlags.Update) {
53-
ɵelementStylingProp(0, 0, ctx.data.depth % 2 ? '' : 'grey');
53+
ɵelementStyleProp(0, 0, ctx.data.depth % 2 ? '' : 'grey');
5454
ɵtextBinding(1, ɵinterpolation1(' ', ctx.data.value, ' '));
5555
ɵcontainerRefreshStart(2);
5656
{
@@ -127,7 +127,7 @@ export function TreeTpl(rf: ɵRenderFlags, ctx: TreeNode) {
127127
ɵelementEnd();
128128
}
129129
if (rf & ɵRenderFlags.Update) {
130-
ɵelementStylingProp(1, 0, ctx.depth % 2 ? '' : 'grey');
130+
ɵelementStyleProp(1, 0, ctx.depth % 2 ? '' : 'grey');
131131
ɵtextBinding(2, ɵinterpolation1(' ', ctx.value, ' '));
132132
ɵcontainerRefreshStart(3);
133133
{

packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ describe('compiler compliance', () => {
425425
$r3$.ɵelementEnd();
426426
}
427427
if (rf & 2) {
428-
$r3$.ɵelementStylingProp(0, 0, ctx.color);
428+
$r3$.ɵelementStyleProp(0, 0, ctx.color);
429429
$r3$.ɵelementClassProp(0, 0, ctx.error);
430430
$r3$.ɵelementStylingApply(0);
431431
}
@@ -674,10 +674,10 @@ describe('compiler compliance', () => {
674674
MyComponent.ngComponentDef = $r3$.ɵdefineComponent({
675675
type: MyComponent,
676676
selectors: [["my-component"]],
677-
factory: function MyComponent_Factory(t) {
677+
factory: function MyComponent_Factory(t) {
678678
return new (t || MyComponent)(
679-
$r3$.ɵdirectiveInject(ElementRef), $r3$.ɵdirectiveInject(ViewContainerRef),
680-
$r3$.ɵdirectiveInject(ChangeDetectorRef));
679+
$r3$.ɵdirectiveInject(ElementRef), $r3$.ɵdirectiveInject(ViewContainerRef),
680+
$r3$.ɵdirectiveInject(ChangeDetectorRef));
681681
},
682682
features: [$r3$.ɵPublicFeature],
683683
consts: 0,

packages/compiler-cli/test/compliance/r3_view_compiler_styling_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ describe('compiler compliance: styling', () => {
315315
}
316316
if (rf & 2) {
317317
$r3$.ɵelementStylingMap(0, null, $ctx$.myStyleExp);
318-
$r3$.ɵelementStylingProp(0, 1, $ctx$.myWidth);
319-
$r3$.ɵelementStylingProp(0, 2, $ctx$.myHeight);
318+
$r3$.ɵelementStyleProp(0, 1, $ctx$.myWidth);
319+
$r3$.ɵelementStyleProp(0, 2, $ctx$.myHeight);
320320
$r3$.ɵelementStylingApply(0);
321321
$r3$.ɵelementAttribute(0, "style", $r3$.ɵbind("border-width: 10px"), $r3$.ɵsanitizeStyle);
322322
}
@@ -373,7 +373,7 @@ describe('compiler compliance: styling', () => {
373373
$r3$.ɵelementEnd();
374374
}
375375
if (rf & 2) {
376-
$r3$.ɵelementStylingProp(0, 0, ctx.myImage);
376+
$r3$.ɵelementStyleProp(0, 0, ctx.myImage);
377377
$r3$.ɵelementStylingApply(0);
378378
}
379379
}

packages/compiler/src/render3/r3_identifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Identifiers {
4343

4444
static elementStylingMap: o.ExternalReference = {name: 'ɵelementStylingMap', moduleName: CORE};
4545

46-
static elementStyleProp: o.ExternalReference = {name: 'ɵelementStylingProp', moduleName: CORE};
46+
static elementStyleProp: o.ExternalReference = {name: 'ɵelementStyleProp', moduleName: CORE};
4747

4848
static elementStylingApply:
4949
o.ExternalReference = {name: 'ɵelementStylingApply', moduleName: CORE};

packages/core/src/core_render3_private_export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export {
8989
elementAttribute as ɵelementAttribute,
9090
elementStyling as ɵelementStyling,
9191
elementStylingMap as ɵelementStylingMap,
92-
elementStyleProp as ɵelementStylingProp,
92+
elementStyleProp as ɵelementStyleProp,
9393
elementStylingApply as ɵelementStylingApply,
9494
elementClassProp as ɵelementClassProp,
9595
textBinding as ɵtextBinding,

packages/core/src/render3/jit/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const angularCoreEnv: {[name: string]: Function} = {
9292
'ɵreference': r3.reference,
9393
'ɵelementStyling': r3.elementStyling,
9494
'ɵelementStylingMap': r3.elementStylingMap,
95-
'ɵelementStylingProp': r3.elementStyleProp,
95+
'ɵelementStyleProp': r3.elementStyleProp,
9696
'ɵelementStylingApply': r3.elementStylingApply,
9797
'ɵtemplate': r3.template,
9898
'ɵtext': r3.text,

packages/core/test/render3/compiler_canonical/elements_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ describe('elements', () => {
345345
$r3$.ɵelementEnd();
346346
}
347347
if (rf & 2) {
348-
$r3$.ɵelementStylingProp(0, 0, ctx.someColor);
349-
$r3$.ɵelementStylingProp(0, 1, ctx.someWidth, 'px');
348+
$r3$.ɵelementStyleProp(0, 0, ctx.someColor);
349+
$r3$.ɵelementStyleProp(0, 1, ctx.someWidth, 'px');
350350
$r3$.ɵelementStylingApply(0);
351351
}
352352
}

packages/core/test/render3/compiler_canonical/sanitize_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('compiler sanitization', () => {
5353
if (rf & 2) {
5454
$r3$.ɵelementProperty(0, 'innerHTML', $r3$.ɵbind(ctx.innerHTML), $r3$.ɵsanitizeHtml);
5555
$r3$.ɵelementProperty(0, 'hidden', $r3$.ɵbind(ctx.hidden));
56-
$r3$.ɵelementStylingProp(0, 0, ctx.style);
56+
$r3$.ɵelementStyleProp(0, 0, ctx.style);
5757
$r3$.ɵelementStylingApply(0);
5858
$r3$.ɵelementProperty(1, 'src', $r3$.ɵbind(ctx.url), $r3$.ɵsanitizeUrl);
5959
$r3$.ɵelementAttribute(1, 'srcset', $r3$.ɵbind(ctx.url), $r3$.ɵsanitizeUrl);

0 commit comments

Comments
 (0)