Skip to content

Commit

Permalink
misc(gather): update comment re: ClientRect copying (#7785)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Mar 28, 2019
1 parent 21dda6a commit d98e12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/gather/gatherers/image-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function collectImageElementInfo() {
function getClientRect(element) {
const clientRect = element.getBoundingClientRect();
return {
// manually copy the properties because ClientRect does not JSONify
// Just grab the DOMRect properties we want, excluding x/y/width/height
top: clientRect.top,
bottom: clientRect.bottom,
left: clientRect.left,
Expand Down

0 comments on commit d98e12b

Please sign in to comment.