Commit 5e71410f authored by Yi Su's avatar Yi Su Committed by Commit Bot

Remove unnecessary comments in find_in_page.js.

This CL removes the remaining comments about scrolling in
find_in_page.js.

Bug: 911780
Change-Id: Ie2ce2c4c45e2f829dba2338446943da63da13946
Reviewed-on: https://chromium-review.googlesource.com/c/1365896Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Commit-Queue: Yi Su <mrsuyi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615476}
parent 02d7d52f
......@@ -710,7 +710,7 @@ function scaleCoordinates_(coordinates) {
};
/**
* Finds the position of the result and scrolls to it.
* Finds the position of the result.
* @return {string} JSON encoded array of the scroll coordinates "[x, y]".
*/
function findScrollDimensions_() {
......@@ -722,9 +722,6 @@ function findScrollDimensions_() {
let xPos = normalized[0];
let yPos = normalized[1];
// Perform the scroll.
// window.scrollTo(xPos, yPos);
match.addSelectHighlight();
let scaled = scaleCoordinates_(normalized);
let index = match.visibleIndex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment