MCPcopy Index your code
hub / github.com/ampproject/amphtml / measureMutateElement

Method measureMutateElement

src/base-element.js:969–975  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 15

mutateElementMethod · 0.95
measureMutate_Method · 0.45
lockHeightAndMutate_Method · 0.45
animateExpand_Method · 0.45
animateCollapse_Method · 0.45
resizeSafeframeMethod · 0.45
checkARIA_Method · 0.45
stepLeft_Method · 0.45
stepRight_Method · 0.45
pointerMoveX_Method · 0.45

Calls 1

getAmpDocMethod · 0.95

Tested by

no test coverage detected