Revert "fix(animations): process shorthand margin and padding styles correctly (#35701)" (#35847)

This reverts commit 35c9f0dc2f, breaks
internal tests

PR Close #35847
This commit is contained in:
Andrew Scott
2020-03-03 16:01:41 -08:00
parent 3ce5be7715
commit 25ab4647c5
9 changed files with 16 additions and 100 deletions

View File

@ -6,10 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
import {AnimateTimings, AnimationMetadata, AnimationMetadataType, AnimationOptions, sequence, ɵStyleData} from '@angular/animations';
import {Ast as AnimationAst, AstVisitor as AnimationAstVisitor} from './dsl/animation_ast';
import {AnimationDslVisitor} from './dsl/animation_dsl_visitor';
import {computeStyle, isNode} from './render/shared';
import {isNode} from './render/shared';
export const ONE_SECOND = 1000;
@ -341,3 +340,7 @@ export function visitDslNode(visitor: any, node: any, context: any): any {
throw new Error(`Unable to resolve animation metadata node #${node.type}`);
}
}
export function computeStyle(element: any, prop: string): string {
return (<any>window.getComputedStyle(element))[prop];
}