* Runs the specified measure, then runs the mutation on the element and * ensures that remeasures and layouts are performed for the affected * elements. * * This method should be called whenever a measure and significant mutations * are done on the DOM that could affect layout of elem
(measurer, mutator, opt_element)
| 967 | * @return {!Promise} |
| 968 | */ |
| 969 | measureMutateElement(measurer, mutator, opt_element) { |
| 970 | return Services.mutatorForDoc(this.getAmpDoc()).measureMutateElement( |
| 971 | opt_element || this.element, |
| 972 | measurer, |
| 973 | mutator |
| 974 | ); |
| 975 | } |
| 976 | |
| 977 | /** |
| 978 | * Runs the specified mutation on the element. Will not cause remeasurements. |
no test coverage detected