MCPcopy
hub / github.com/ampproject/amphtml / mutateElement

Method mutateElement

src/base-element.js:949–951  ·  view source on GitHub ↗

* Runs the specified mutation on the element and ensures that remeasures and * layouts are performed for the affected elements. * * This method should be called whenever a significant mutations are done * on the DOM that could affect layout of elements inside this subtree or * its sib

(mutator, opt_element)

Source from the content-addressed store, hash-verified

947 * @return {!Promise}
948 */
949 mutateElement(mutator, opt_element) {
950 return this.measureMutateElement(null, mutator, opt_element);
951 }
952
953 /**
954 * Runs the specified measure, then runs the mutation on the element and

Callers 6

test-mutator.jsFile · 0.45
overflowCallbackMethod · 0.45
mutateOrInvoke_Method · 0.45
handleResize_Method · 0.45

Calls 1

measureMutateElementMethod · 0.95

Tested by

no test coverage detected