/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class ReflowWatcher { /** * Start watching for reflows related to a given Target Actor. * * @param TargetActor targetActor * The target actor from which we should observe reflows * @param Object options * Dictionary object with following attributes: * - onAvailable: mandatory function * This will be called for each resource.
*/
async watch(targetActor, { onAvailable }) { // Only track reflow for non-ParentProcess FRAME targets if (
targetActor.targetType !== Targets.TYPES.FRAME ||
targetActor.typeName === "parentProcessTarget"
) { return;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.