Skip to content

Commit

Permalink
Merge 3f420b1 into 6e0dbad
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Sep 2, 2020
2 parents 6e0dbad + 3f420b1 commit 4fcb560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lighthouse-core/gather/gatherers/trace-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class TraceElements extends Gatherer {
animationPairs.set(local, pair);
}

/** @type Map<number, Set<{animationId: string, failureReasonsMask?: number, unsupportedProperties?: string[]}>> */
/** @type {Map<number, Set<{animationId: string, failureReasonsMask?: number, unsupportedProperties?: string[]}>>} */
const elementAnimations = new Map();
for (const {begin, status} of animationPairs.values()) {
const nodeId = this.getNodeIDFromTraceEvent(begin);
Expand All @@ -230,7 +230,7 @@ class TraceElements extends Gatherer {
elementAnimations.set(nodeId, animationIds);
}

/** @type Array<TraceElementData> */
/** @type {Array<TraceElementData>} */
const animatedElementData = [];
for (const [nodeId, animationIds] of elementAnimations) {
const animations = [];
Expand Down Expand Up @@ -269,7 +269,7 @@ class TraceElements extends Gatherer {
const animatedElementData =
await TraceElements.getAnimatedElements(passContext, mainThreadEvents);

/** @type Map<string, TraceElementData[]> */
/** @type {Map<string, TraceElementData[]>} */
const backendNodeDataMap = new Map([
['largest-contentful-paint', lcpNodeId ? [{nodeId: lcpNodeId}] : []],
['layout-shift', clsNodeData],
Expand Down

0 comments on commit 4fcb560

Please sign in to comment.