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

Method updateLayoutPriority

src/service/resources-impl.js:499–512  ·  view source on GitHub ↗

@override

(element, newLayoutPriority)

Source from the content-addressed store, hash-verified

497
498 /** @override */
499 updateLayoutPriority(element, newLayoutPriority) {
500 const resource = Resource.forElement(element);
501
502 resource.updateLayoutPriority(newLayoutPriority);
503
504 // Update affected tasks
505 this.queue_.forEach((task) => {
506 if (task.resource == resource) {
507 task.priority = newLayoutPriority;
508 }
509 });
510
511 this.schedulePass();
512 }
513
514 /** @override */
515 schedulePass(opt_delay) {

Callers

nothing calls this directly

Calls 3

schedulePassMethod · 0.95
forElementMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected