revert: refactor(ivy): remove styling state storage and introduce direct style writing (#32259)
This commit is contained in:
@ -61,7 +61,9 @@ export interface SafeResourceUrl extends SafeValue {}
|
||||
|
||||
|
||||
abstract class SafeValueImpl implements SafeValue {
|
||||
constructor(public changingThisBreaksApplicationSecurity: string) {}
|
||||
constructor(public changingThisBreaksApplicationSecurity: string) {
|
||||
// empty
|
||||
}
|
||||
|
||||
abstract getTypeName(): string;
|
||||
|
||||
@ -87,10 +89,10 @@ class SafeResourceUrlImpl extends SafeValueImpl implements SafeResourceUrl {
|
||||
getTypeName() { return BypassType.ResourceUrl; }
|
||||
}
|
||||
|
||||
export function unwrapSafeValue(value: string | SafeValue): string {
|
||||
export function unwrapSafeValue(value: SafeValue): string {
|
||||
return value instanceof SafeValueImpl ?
|
||||
(value as SafeValueImpl).changingThisBreaksApplicationSecurity :
|
||||
(value as string);
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user